Skip to content

Instantly share code, notes, and snippets.

@suchi
Created May 31, 2011 07:07
Show Gist options
  • Save suchi/1000092 to your computer and use it in GitHub Desktop.
Save suchi/1000092 to your computer and use it in GitHub Desktop.
コンテナをcopyとostream_iteratorを使って出力するイディオム
copy(vs.begin(), vs.end(), ostream_iterator<string>(cout, "\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment