write STL container to output stream
1 2 //write all elements without any delimiter 3 copy (coll.begin(), coll.end(), ostream_iterator(cout));
reff : josutis, pg. 278
1 2 //with boost 3 for_each(coll.begin(), coll.end(), cout << _1);
13393 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 //write all elements without any delimiter 3 copy (coll.begin(), coll.end(), ostream_iterator(cout));
1 2 //with boost 3 for_each(coll.begin(), coll.end(), cout << _1);