Template Function std::operator>>

Function Documentation

template<class T, class U>
std::istream &std::operator>>(std::istream &is, std::pair<T, U> &vals)

Extraction 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
  • is – input stream from which to extract the values

  • vals – pair of values where the extracted data will be stored

Returns

std::istream& reference to the input stream used