std::chrono...ekday_last)(3)
π NAME π
Bestie, welcome to the C++ Standard Libary page for std::chrono::operator<<(std::chrono::month_weekday_last) β yes, that's the manual name with the iconic spelling, and we're keeping it exactly. The NAME line is literally:
std::chrono::operator<<(std::chrono::month_weekday_last) - std::chrono::operator<<(std::chrono::month_weekday_last)
So yeah, same name twice. It's giving main-character energy, and honestly? Obsessed. π
β¨ Synopsis β¨
Here's the exact signature-and-behavior situation, no cap:
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::month_weekday_last& mwdl );
Outputs a textual representation of mwdl into os, as if by
os << std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{:L}/{:L}"),
mwdl.month(), mwdl.weekday_last());
where STATICALLY_WIDEN<CharT>("{:L}/{:L}") is "{:L}/{:L}" if CharT is
char, and
L"{:L}/{:L}" if CharT is wchar_t.
So it outputs a textual representation of mwdl into os, as if by that os << std::format(...) call. And the STATICALLY_WIDEN<CharT>("{:L}/{:L}") bit is "{:L}/{:L}" when CharT is char, and L"{:L}/{:L}" when CharT is wchar_t. Slay. π
π« Return value π«
It returns os. That's it. The stream comes back to you like a boomerang, bestie. πͺ
π§ͺ Example π§ͺ
This section is incomplete Reason: no example
Literally no example yet, which is a little tragic. π The page is in its incomplete era.
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Retroactive glow-up, periodt.
P2372R3β applied to C++20. Behavior as published: the given locale was used by default. Correct behavior:Lis needed to use the given locale.
π See also π
format(C++20) β stores formatted representation of the arguments in a new string (function template)std::formatter<std::chrono::month>(C++20) β formatting support for month (class template specialization)
π Category π
- Todo no example
That's the whole page, bestie β mwah π. Source/version/date: http://cppreference.com, 2024.06.10, and the footer title vibe is std::chrono...ekday_last)(3). π«Άβ¨
π¦ 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