Skip to content

Instantly share code, notes, and snippets.

@xylcbd
Created June 26, 2018 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xylcbd/da00ea078d0e7aca45a83e95dfaae71d to your computer and use it in GitHub Desktop.
Save xylcbd/da00ea078d0e7aca45a83e95dfaae71d to your computer and use it in GitHub Desktop.
static std::ostream& operator<<(std::ostream& os, const std::vector<int>& data)
{
for (size_t i = 0; i < data.size();i++)
{
os << data[i];
if (i < (int)data.size() - 1)
{
os << ", ";
}
}
return os;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment