Template Function std::operator<<(std::ostream&, const std::pair<boost::posix_time::time_duration, T>&)

Function Documentation

template<typename T>
std::ostream &std::operator<<(std::ostream &out, const std::pair<boost::posix_time::time_duration, T> &rhs)

Overloads the stream output operator for std::pair<boost::posix_time::time_duration, T>.

This operator formats the output as a CSV-compatible string: duration,value.

Template Parameters:

T – The type of the second element in the pair.

Parameters:
  • out – The output stream.

  • rhs – The pair containing a time duration and a value.

Returns:

The modified output stream.