Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.