std::chrono...ekday_last)(3)
okay bestie, welcome to the std::chrono::operator<<(std::chrono::weekday_last) page from the C++ Standard Libary manual β the header is out here looking like std::chrono...ekday_last)(3), and that truncation is lowkey iconic π
β¨.
π NAME π
std::chrono::operator<<(std::chrono::weekday_last) β std::chrono::operator<<(std::chrono::weekday_last). Yes, it says it twice, and honestly? Say it twice so they know you mean it. The way that this is literally the stream-output overload for std::chrono::weekday_last, periodt.
π¦ Synopsis π¦
Defined in header <chrono>, and since C++20 itβs giving template-and-overload realness:
Defined in header <chrono>
template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>&
(since C++20)
operator<<( std::basic_ostream<CharT, Traits>& os, const
std::chrono::weekday_last& wdl );
What it does: it outputs a textual representation of wdl into the stream os, as if by:
os << std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{:L}[last]"),
wdl.weekday());
where STATICALLY_WIDEN<CharT>("{:L}[last]") is "{:L}[last]" if CharT is char, and L"{:L}[last]" if CharT is wchar_t. Thatβs the whole format vibe check, no cap.
π Return value π
os β thatβs it, thatβs the return value. It hands the stream right back to you, bestie π«Ά.
πΈ Example πΈ
This section is incomplete. Reason: no example.
So thereβs literally no example here, and weβre not gonna invent one π. The page is just out here incomplete, and thatβs valid.
π Defect reports π
okay so these are the behavior-changing defect reports that got applied retroactively to previously published C++ standards:
- DR:
P2372R3- Applied to:
C++20 - Behavior as published: the given locale was used by default
- Correct behavior:
Lis needed to use the given locale
- Applied to:
π See also π
format(C++20)β stores formatted representation of the arguments in a new string (function template)std::formatter<std::chrono::weekday>(C++20)β formatting support forweekday(class template specialization)
π Category π
- Category:
Todo no example
source/version: http://cppreference.com Β· date: 2024.06.10 Β· page tag: std::chrono...ekday_last)(3) β love u, bye bestie πβ¨
π¦ 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