1// stringstream::str
2#include <string> // std::string
3#include <iostream> // std::cout
4#include <sstream> // std::stringstream, std::stringbuf
5
6int main () {
7 std::stringstream ss;
8 ss.str ("Example string");
9 std::string s = ss.str();
10 std::cout << s << '\n';
11 return 0;
12}