Guest User

Untitled

a guest
Apr 22nd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. template<typename T1, typename T2>
  2. std::ostream &operator<<(std::ostream &stream, const std::map<T1, T2>& map)
  3. {
  4. for (typename std::map<T1, T2>::const_iterator it = map.begin();
  5. it != map.end();
  6. ++it)
  7. {
  8. stream << (*it).first << " --> " << (*it).second << std::endl;
  9. }
  10. return stream;
  11. }
Add Comment
Please, Sign In to add comment