News for hackers. Stuff that matters.
Re:Manipulating C++ Containers Functionally by zainny on Sunday December 16, 2012 @06:48PM (#4930076)
Fortunately with C++11 we no longer have to do the stringstream dance thanks to built-in stoi/stol string member functions: http://en.cppreference.com/w/cpp/string/basic_string/stol
Re:Manipulating C++ Containers Functionally by splinterofchaos on Sunday December 16, 2012 @06:56PM (#4930112)
Technically, those are free functions defined on strings, not members functions of the class string.

But also: std::to_string

http://en.cppreference.com/w/cpp/string/basic_string/to_stri...