std::chrono..._list::cend(3)

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

πŸ’– std::chrono..._list::cend(3) πŸ’–

okay bestie, welcome to the std::chrono..._list::cend(3) page πŸ’… this one comes from the C++ Standard Libary manual (yes, that's the manual name, keep it cute), and we're talking about std::chrono::tzdb_list::end and std::chrono::tzdb_list::cend together, like a duo. no cap.


✨ NAME ✨

the NAME lineup is exactly:

std::chrono::tzdb_list::end,std::chrono::tzdb_list::cend - std::chrono::tzdb_list::end,std::chrono::tzdb_list::cend

so yeah, both names, comma'd up, hyphen in the middle, then both names again. the whole name moment. periodt 🫢


🌸 Synopsis 🌸

const_iterator end() const noexcept;   (since C++20)
const_iterator cend() const noexcept;  (since C++20)

Returns the past-the-end iterator of the tzdb_list. Attempting to dereference this iterator results in undefined behavior 😭

bestie, this is the important part: dereferencing the past-the-end iterator is undefined behavior. do not do it. i'm serious. πŸ’€

πŸŽ€ Return value πŸŽ€

The past-the-end iterator. that's the return value, that's the whole vibe, and it's iconic πŸ‘‘βœ¨


cute sign-off: source/version http://cppreference.com, dated 2024.06.10, and this was the std::chrono..._list::cend(3) page β€” mwah, bye bestie πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from