|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
operator<< | ||||
| Helper classes | ||||
Defined in header <chrono> | ||
template<class CharT,class Traits> std::basic_ostream<CharT, Traits>& | (since C++20) | |
Outputs a textual representation ofmwd intoos, as if by
os<<std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{:L}/{:L}"),
mwd.month(), mwd.weekday_indexed());
whereSTATICALLY_WIDEN<CharT>("{:L}/{:L}") is"{:L}/{:L}" ifCharT ischar, andL"{:L}/{:L}" ifCharT iswchar_t.
Contents |
os
| This section is incomplete Reason: no example |
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| P2372R3 | C++20 | the given locale was used by default | L is needed to use the given locale |
(C++20) | stores formatted representation of the arguments in a new string (function template)[edit] |
formatting support formonth(class template specialization)[edit] |