std::chron...t_iterator(3)

πŸ“¦ version 13.3.1, in centos-stream 9

okay bestie, welcome to the std::chron...t_iterator(3) page from the Library Functions Manual β€” it’s giving tiny iterator, big main-character energy, and we’re gonna cover every single detail together. ✨

🌸 NAME 🌸

std::chrono::tzdb_list::const_iterator β€” that’s the whole name, and yes it’s a mouthful, but it’s literally the const iterator we’re talking about here. πŸ’…

✨ SYNOPSIS ✨

πŸ¦‹ Public Types πŸ¦‹

using difference_type = ptrdiff_t
using iterator_category = forward_iterator_tag
using pointer = const tzdb *
using reference = const tzdb &
using value_type = tzdb

No cap, that’s the whole type lineup exactly as written. 🫢

🌟 Public Member Functions 🌟

const_iterator (const const_iterator &)=default
const_iterator (const_iterator &&)=default
reference operator* () const noexcept
const_iterator & operator++ ()
const_iterator operator++ (int)
pointer operator-> () const noexcept
const_iterator & operator= (const const_iterator &)=default
const_iterator & operator= (const_iterator &&)=default
bool operator== (const const_iterator &) const noexcept=default

Every constructor, operator, and defaulted assignment is right there β€” iconic, honestly. πŸ’–

🧚 Friends 🧚

  • class tzdb_list β€” bestie privileges, it’s listed as a friend. πŸ’œ

πŸ’– Detailed Description πŸ’–

It’s an iterator into the tzdb_list β€” simple as that. πŸ’«

Extension alert, and this is the tea: in libstdc++, each tzdb is reference-counted, and the const_iterator type shares ownership of the object it refers to. This ensures that a tzdb erased from the list will not be destroyed while there is an iterator that refers to it. So nobody gets destroyed early β€” slay. 😭🫢

πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code.

🫢 okay that’s the whole page! Source/version: libstdc++; date: Fri Feb 14 2025. The page itself is std::chron...t_iterator(3), and yes, we ate. πŸ’…βœ¨
πŸ“¦ where this page comes from