@@ -217,38 +217,6 @@ int main() {
217217 }
218218 }
219219
220- /*
221- # stringstream
222-
223- # basic_stringstream
224-
225- An iostream String backed implementation.
226-
227- The following is defined:
228-
229- typedef basic_stringstream<char> stringstream;
230-
231- typedef basic_stringstream<char>
232-
233- Very useful to test streams without creating files / stdin.
234- */
235- {
236- std::stringstream oss (" abcd" );
237-
238- // str does not clear the std::stringstream object
239- assert (oss.str () == " abcd" );
240-
241- // To clear it you could do: http://stackoverflow.com/questions/20731/in-c-how-do-you-clear-a-stringstream-variable
242- // Set to empty:
243- oss.str (" " );
244- // Clear flags. Very important, not only for error indicators but also for end of stream.
245- oss.clear ();
246- assert (oss.str () == " " );
247-
248- // ERROR: use of deleted function because the constructor is =delete.
249- // oss = std::stringstream();
250- }
251-
252220 // Possible application: build up a huge string step by step.
253221 // May be more efficient than concatenations which always generates new objects.
254222 {
@@ -263,7 +231,7 @@ int main() {
263231
264232 There are a few standard alternatives.
265233
266- < http://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c>
234+ http://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c
267235 */
268236 {
269237 /*
@@ -299,8 +267,11 @@ int main() {
299267 }
300268 }
301269
302- // #int to string
303- // http://stackoverflow.com/questions/7663709/convert-string-to-int-c
270+ /*
271+ # string to int
272+
273+ http://stackoverflow.com/questions/7663709/convert-string-to-int-c
274+ */
304275 {
305276 // Best C++11 error checking option: stoi
306277#if __cplusplus >= 201103L
0 commit comments