Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

If you need to format values into a std::string or extract formatted values from a std::string and are stuck in the pre-C++20 world, your main option is std::stringstream. std::istringstream can be filled with a string and treated as any other istream object. std::ostringstream can be treated as an ostream object with the option to extract the current content as std::string. Compiler Explorer link: https://lnkd.in/eSQdtYQv #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

this crap has significant performance drawbacks

Like
Reply
Artyom Kachalkin

ЭР-Телеком Холдинг, АО769 followers

2y

Very interesting! Thanks!

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories