|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
operator<< | ||||
| Helper classes | ||||
(C++26) |
Defined in header <chrono> | ||
template<class CharT,class Traits> std::basic_ostream<CharT, Traits>& | (since C++20) | |
Outputs a textual representation ofmd into the streamos, as if by
os<<std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{:L}/{}"), md.month(), md.day())
whereSTATICALLY_WIDEN<CharT>("{:L}/{}") is"{:L}/{}" ifCharT ischar, andL"{: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_day(class template specialization)[edit] |