Add test helper stream method for pairs
This commit is contained in:
parent
81880e000e
commit
d5674d33c4
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue