std::chrono::operator<<(std::chrono::month_weekday_last) (3) - Linux Manuals

std::chrono::operator<<(std::chrono::month_weekday_last): std::chrono::operator<<(std::chrono::month_weekday_last)

NAME

std::chrono::operator<<(std::chrono::month_weekday_last) - std::chrono::operator<<(std::chrono::month_weekday_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::month_weekday_last& mwdl);


Outputs a textual representation of mwdl into os, as if by os << mwdl.month() << '/' << mwdl.weekday_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 mwdl = February/Sunday[last];
  std::cout.width(10);
  std::cout.fill('-');
  std::cout << std::left << mwdl; // may output "Feb-------/Sun[last]"