I noticed to my glee that C++11 has a std stoX family of functions for easily unpacking ints/floats/longs whatever from strings. I'm surprised however, that the opposite isn't implemented. Why didn't the standards committee include a std::itos family of functions for going from ints/floats/whatever to strings?
Tell me more
×
Programmers Stack Exchange is a question and answer site for
professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.
|
I was mistaken, there is a set of "stoX" functions, they are all just named "to_string". Each to_string is overloaded to take a different basic type, ie
See here for more info. |
|||
|
|