std::chrono...weekday_last(3)
π NAME π
Okay bestie, this page is from the C++ Standard Library manual, and the page is std::chrono...weekday_last(3). The star of the show is std::chrono::month_weekday_last::month_weekday_last β yes, the name is a whole snack and a half, but it's the month_weekday_last constructor. π
β¨ Synopsis β¨
Here's the exact signature, no cap:
constexpr month_weekday_last( const std::chrono::month& m,
const std::chrono::weekday_last& wdl )
(since C++20)
noexcept;
So it's constexpr, it's noexcept;, and it's been around since C++20. π«Ά
π Notes π
A more convenient way to construct a month_weekday_last is with operator/, e.g.:
std::chrono::April/std::chrono::Sunday[std::chrono::last]
It literally constructs a month_weekday_last object that stores the month m and the weekday_last wdl. That's the whole vibe. π¦
π¦ See also π¦
operator/β conventional syntax for Gregorian calendar date creation (C++20) (function). iconic behavior, honestly. π
Cute little sign-off: source is http://cppreference.com, version/date is 2024.06.10, and the manual is std::chrono...weekday_last(3). Stay slay, stay noexcept; πβ¨π
π¦ 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