Created
June 26, 2018 02:01
-
-
Save xylcbd/da00ea078d0e7aca45a83e95dfaae71d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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