Skip to content

Instantly share code, notes, and snippets.

@sguzman
Last active August 29, 2015 13:56
Show Gist options
  • Save sguzman/9299108 to your computer and use it in GitHub Desktop.
Save sguzman/9299108 to your computer and use it in GitHub Desktop.
Print a pair
template <typename T1, typename T2>
std::ostream& operator<<(std::ostream& os, std::pair<T1,T2> pa)
{
return os << pa.first << ' ' << pa.second;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment