Add test helper stream method for pairs

This commit is contained in:
Max Brunsfeld 2014-06-24 21:54:38 -07:00
parent 81880e000e
commit d5674d33c4

View file

@ -75,6 +75,11 @@ namespace std {
}
return stream << ">";
}
template<typename T1, typename T2>
inline std::ostream& operator<<(std::ostream &stream, const std::pair<T1, T2> &pair) {
return stream << "{" << pair.first << ", " << pair.second << "}";
}
}
#endif