std::chrono...eekday_last)(3)
π NAME π
Okay bestie, the name is std::chrono::operator<<(std::chrono::year_month_weekday_last) β and then the dash β and then, because the manual literally said it twice, the exact same std::chrono::operator<<(std::chrono::year_month_weekday_last) again. No cap, that's the NAME line: name, dash, name. π«Ά
β¨ Synopsis β¨
This page is from the C++ Standard Libary manual (yes, that spelling is the manual's, I'm just the messenger π), and the page label is std::chrono...eekday_last)(3).
Defined in header <chrono> β¨
template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>&
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::year_month_weekday_last& ymwdl );
Since C++20 ((since C++20) on the page π
).
It outputs a textual representation of ymwdl into os, as if by:
os << std::format(os.getloc(),
STATICALLY_WIDEN<CharT>("{}/{:L}/{:L}"),
ymwdl.year(), ymwdl.month(), ymwdl.weekday_last());
Where STATICALLY_WIDEN<CharT>("{}/{:L}/{:L}") is "{}/{:L}/{:L}" if CharT is char, and L"..." if CharT is wchar_t. That's the whole translation unit of a vibe check, literally. π¦
π Return value π
It returns os. That's it β os is the whole return value, and honestly? iconic. π
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards (committee time travel, but make it paperwork β¨). The columns are DR, Applied to, Behavior as published, and Correct behavior.
P2372R3β applied to C++20.- Behavior as published:
the given locale was used by default - Correct behavior:
L is needed to use the given locale
- Behavior as published:
π See also π
format(C++20) β stores formatted representation of the arguments in a new string (function template).std::formatter<std::chrono::year_month_day>(C++20) β formatting support foryear_month_day(class template specialization).
Okay bestie, that's the whole page π. Source/URL: http://cppreference.com; version/date: 2024.06.10; page footer label: std::chrono...eekday_last)(3). Mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms