boost::lexical_cast<std::string>(yourint) from boost/lexical_cast.hpp
Work's for everything with std::ostream support, but is not as fast as, for example, itoa
It even appears to be faster than stringstream or scanf:
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internalboost::lexical_cast<std::string>(yourint) from boost/lexical_cast.hpp
Work's for everything with std::ostream support, but is not as fast as, for example, itoa
It even appears to be faster than stringstream or scanf:
boost::lexical_cast<std::string>(yourint)
Work's for everything with std::ostream support, but is not as fast as, for example, itoa
boost::lexical_cast<std::string>(yourint) from boost/lexical_cast.hpp
Work's for everything with std::ostream support, but is not as fast as, for example, itoa
It even appears to be faster than stringstream or scanf:
boost::lexical_cast<std::string>(yourint)
Work's for everything with std::ostream support, but is not as fast as, for example, atoiitoa
boost::lexical_cast<std::string>(yourint)
Work's for everything with std::ostream support, but is not as fast as, for example, atoi
boost::lexical_cast<std::string>(yourint)
Work's for everything with std::ostream support, but is not as fast as, for example, itoa