std::chrono::operator<<(std::chrono::year_month_day_last) (3) - Linux Man Pages

std::chrono::operator<<(std::chrono::year_month_day_last): std::chrono::operator<<(std::chrono::year_month_day_last)

NAME

std::chrono::operator<<(std::chrono::year_month_day_last) - std::chrono::operator<<(std::chrono::year_month_day_last)

Synopsis


template <class CharT, class Traits>
std::basic_ostream<CharT, Traits>& (since C++20)
operator<<(std::basic_ostream<CharT, Traits>& os, const std::chrono::year_month_day_last& ymdl);


Outputs a textual representation of ymdl into os, as if by os << ymdl.year() << '/' << ymdl.month_day_last();

Return value


os.

Notes


This operator<< is primarily intended for debugging use. When used with non-default stream flags, the output may be surprising:


  using namespace std::chrono;
  auto ymdl = 2001y/2/last;
  std::cout.width(10);
  std::cout.fill('-');
  std::cout << std::left << ymdl; // may output "2001------/Feb/last"