std::chrono...h_day_last)(3)

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

πŸ’– NAME πŸ’–

okay so welcome to the std::chrono::operator<<(std::chrono::month_day_last) page from the C++ Standard Libary manual β€” yes, that's the manual name, and we're keeping it exactly as printed, bestie 🫢. The name is literally std::chrono::operator<<(std::chrono::month_day_last) - std::chrono::operator<<(std::chrono::month_day_last), because she said it twice and she's iconic πŸ’….

✨ 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::month_day_last& mdl );

Outputs a textual representation of mdl into os, as if by:

os << std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{:L}/last"), mdl.month());

where STATICALLY_WIDEN<CharT>("{:L}/last") is "{:L}/last" if CharT is char, and L"{:L}/last" if CharT is wchar_t.

πŸŽ€ Return value πŸŽ€

os β€” yes bestie, she returns the stream, periodt ✨.

πŸ’€ Defect reports πŸ’€

The following behavior-changing defect reports were applied retroactively to previously published C++ standards:

  • P2372R3 β€” Applied to: C++20; behavior as published: the given locale was used by default; correct behavior: L is 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_day> (C++20) β€” formatting support for month_day (class template specialization)

catch you later, bestie 🫢 β€” source/version/date: http://cppreference.com Β· 2024.06.10 Β· std::chrono...h_day_last)(3). mwah πŸ’‹

πŸ“¦ where this page comes from