std::chrono::operator<<(std::chrono::weekday)

Header: <chrono>

If !wd.ok(), inserts wd.c_encoding() followed by " is not a valid weekday" into os. Otherwise, forms a std::basic_string s consisting of the abbreviated weekday name for the weekday represented by wd, determined using the locale associated with os, and inserts s into os.

# Declarations

template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>&
operator<<( std::basic_ostream<CharT, Traits>& os, const std::chrono::weekday& wd );

(since C++20)

# Return value

os

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
P2372R3C++20the given locale was used by defaultL is needed to use the given locale

# See also