std::chrono...onth_weekday(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay bestie, welcome to the std::chrono...onth_weekday(3) page from the C++ Standard Libary πŸ’… (yes, that spelling is what the header says, we're not fixing it). This is the constructor page for:

std::chrono::month_weekday::month_weekday - std::chrono::month_weekday::month_weekday

Like, that's the NAME, fr fr. It's giving β€œconstructor with the same name as the class,” iconic πŸ‘‘.


✨ Synopsis ✨

constexpr month_weekday( const std::chrono::month& m,
                         const std::chrono::weekday_indexed& wdi )
(since C++20)
noexcept;

Constructs a month_weekday object that stores the month m and the weekday_indexed wdi. Slay β€” that's the whole plot πŸ’–.


πŸ¦‹ Notes πŸ¦‹

A more convenient way to construct a month_weekday is with operator/, e.g., std::chrono::April/std::chrono::Sunday[2]. No cap, that slash syntax is lowkey the main character here ✨.


🌸 See also 🌸

  • operator/ β€” conventional syntax for Gregorian calendar date creation (C++20) (function)

that's the whole page, bestie 🫢 signed off with love from http://cppreference.com, source/version/date 2024.06.10, for std::chrono...onth_weekday(3) πŸ’œ

πŸ“¦ where this page comes from