|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <chrono> | ||
template<class CharT,class Traits,class Duration> std::basic_ostream<CharT, Traits>& | (since C++20) | |
Outputst into the streamos.
Equivalent toreturn os<<std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{:L%T}"), hms); whereSTATICALLY_WIDEN<CharT>("{:L%T}") is"{:L%T}" ifCharT ischar, andL"{:L%T}" ifCharT iswchar_t.
Contents |
| os | - | the output stream |
| t | - | the time of day to be output |
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 forhh_mm_ss(class template specialization)[edit] |