std::chron...t_iterator(3)
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 isstd::chron...t_iterator(3), and yes, we ate. π β¨
π¦ where this page comes from
- centos-stream 9: gcc-toolset-13-libstdc++-docs 13.3.1-2.3.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms