Template Function std::operator<<

Function Documentation

template<class T, class U>
std::ostream &std::operator<<(std::ostream &os, std::pair<T, U> vals)

Insertion operator for a pair of values.

Template Parameters
  • T – type of the first value in the pair

  • U – type of the second value in the pair

Parameters
  • os – output stream to use for insertion of the value pair

  • vals – pair of values to be inserted

Returns

std::ostream& reference to the output stream used