Function stringize

Synopsis

#include <toml/types.hpp>

template <typename charT = char, typename traits = std::char_traits<charT>, typename alloc = std::allocator<charT>>
std::basic_string< charT, traits, alloc > stringize(value_t t)

Description

No description yet.

Mentioned in

Source

Lines 99-107 in toml/types.hpp.

template<typename charT = char,
         typename traits = std::char_traits<charT>,
         typename alloc = std::allocator<charT>>
inline std::basic_string<charT, traits, alloc> stringize(value_t t)
{
    std::basic_ostringstream<charT, traits, alloc> oss;
    oss << t;
    return oss.str();
}





Add Discussion as Guest

Log in