std::chrono...th_day_last)(3)
π std::chrono::operator<<(std::chrono::year_month_day_last) π
okay bestie, gather round π«Ά. This page comes from the C++ Standard Libary (yes, that's the spelling in the header β not me, I would never π). The header title is the abbreviated std::chrono...th_day_last)(3), and the actual star of the show is std::chrono::operator<<(std::chrono::year_month_day_last). slay.
β¨ NAME β¨
The NAME section is literally std::chrono::operator<<(std::chrono::year_month_day_last) - std::chrono::operator<<(std::chrono::year_month_day_last). Yes, it repeats itself. main character energy.
πΈ Synopsis πΈ
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::year_month_day_last& ymdl );
It outputs a textual representation of ymdl into os, as if by:
os << std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{}/{:L}"),
ymdl.year(), ymdl.month_day_last());
where STATICALLY_WIDEN<CharT>("{}/{:L}") is "{}/{:L}" if CharT is char, and L"{}/{:L}" if CharT is wchar_t. iykyk π
π Return value π
os. That's the whole return value. short, sweet, iconic.
π Example π
This section is incomplete. Reason: no example.
Not me staring at an empty example section π. It's giving "trust me bestie" vibes.
π₯ Defect reports π₯
The following behavior-changing defect reports were 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
periodt.
π 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)
π Category π
* Todo no example
Source/version: http://cppreference.com Β· date: 2024.06.10 Β· footer tag: std::chrono...th_day_last)(3). That's the whole page, bestie β go format something cute πβ¨
π¦ 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