Template Function std::operator<<(std::ostream&, const std::map<T, S>&)

Function Documentation

template<typename T, typename S>
std::ostream &std::operator<<(std::ostream &os, const std::map<T, S> &map)

Stream out a mapping of key-value pairs.

Template Parameters:
  • T – streamable key type

  • S – streamable value type

Parameters:
  • os – output stream

  • map – map of keys->values

Returns:

std::ostream&