std::chrono::operator<<(std::chrono::year_month) (3) - Linux Manuals
std::chrono::operator<<(std::chrono::year_month): std::chrono::operator<<(std::chrono::year_month)
NAME
std::chrono::operator<<(std::chrono::year_month) - std::chrono::operator<<(std::chrono::year_month)
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& ym);
Outputs a textual representation of ym into the stream os, as if by os << ym.year() << '/' << ym.month().
Return value
os.
Notes
This operator<< is primarily intended for debugging use. When used with non-default stream flags, the output may be surprising:
For control over formatting, use std::chrono::format.
See also
to_stream (function template)
format formats a streamable chrono object for insertion
(C++20)