C++ Cookbook series 1

Convert int to String

================

#include

template
inline std::string to_string (const T& t)
{
std::stringstream ss;
ss << t;
return ss.str();
}

コメント

人気の投稿