/usr/include/boost/chrono/io/utility
Edit: /usr/include/boost/chrono/io/utility/to_string.hpp (1288B)
// boost/chrono/utility/to_string.hpp
//
// Copyright 2011 Vicente J. Botet Escriba
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#ifndef BOOST_CHRONO_UTILITY_TO_STRING_HPP
#define BOOST_CHRONO_UTILITY_TO_STRING_HPP
#include
#include
#include
namespace boost
{
namespace chrono
{
template
std::basic_string to_basic_string(T const&v) {
std::basic_stringstream sstr;
sstr << v;
return sstr.str();
}
template
std::string to_string(T const&v) {
return to_basic_string(v);
}
#ifndef BOOST_NO_STD_WSTRING
template
std::wstring to_wstring(T const&v) {
return to_basic_string(v);
}
#endif
#if BOOST_CHRONO_HAS_UNICODE_SUPPORT
template
std::basic_string to_u16string(T const&v) {
return to_basic_string(v);
}
template
std::basic_string to_u32string(T const&v) {
return to_basic_string(v);
}
#endif
} // chrono
} // boost
#endif // header