Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

toString method in c++ using sstream

#include <sstream>

template<typename T>
std::string toString(const T& value)
{
    std::ostringstream oss;
    oss << value;
    return oss.str();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #toString #method #sstream
ADD COMMENT
Topic
Name
8+2 =