std::chrono::tzdb_list(3)
β¨ std::chrono::tzdb_list β¨
okay bestie, sit down, hydrate, because we're about to talk about time zone databases π. This little page comes straight out of the Library Functions Manual (libstdc++, no cap), and it's all about std::chrono::tzdb_list. Yes it's a mouthful. Yes it's iconic. Let's go π¦
πΈ NAME πΈ
std::chrono::tzdb_list β literally the list of chrono::tzdb objects, and she's serving main character energy β¨
π SYNOPSIS π
#include <chrono>
π Classes π
class const_iteratorβ yes, she has her own iterator class, we stan π
π§ Public Member Functions π§
tzdb_list (const tzdb_list &)=deleteβ copying? not allowed, deleted, blocked, goodbye πconst_iterator begin () const noexceptβ iterator to the front of the list,noexceptso she's chill about itconst_iterator cbegin () const noexceptβ const version ofbegin(), same energy,noexceptconst_iterator cend () const noexceptβ const version ofend(),noexceptconst_iterator end () const noexceptβ iterator past the end of the list,noexceptconst_iterator erase_after (const_iterator __p)β remove the element after the one your iterator points at πconst tzdb & front () const noexceptβ grab the currenttzdbat the front of the list,noexcepttzdb_list & operator= (const tzdb_list &)=deleteβ assignment? also deleted. she does not do copies, periodt π
π Friends π
bool __detail::__recent_leap_second_info (leap_second_info &, unsigned)const tzdb & get_tzdb ()tzdb_list & get_tzdb_list ()class leap_secondconst tzdb & reload_tzdb ()struct time_zone::_Implclass time_zone_linkstruct tzdb
π« DETAILED DESCRIPTION π«
The list of chrono::tzdb objects π
A single object of this type is constructed by the C++ runtime, and can be accessed by calling chrono::get_tzdb_list().
The front of the list is the current tzdb object and can be accessed via chrono::get_tzdb_list().front() or chrono::get_tzdb() or *chronoget_tzdb_list().begin().
The chrono::reload_tzdb() function will check for a newer version and if found, insert it at the front of the list. πβ¨
Since C++20
π₯ MEMBER FUNCTION DOCUMENTATION π₯
π const_iterator std::chrono::tzdb_list::erase_after (const_iterator __p)
Remove the tzdb object after the one the iterator refers to. bye girl π
Calling this function concurrently with any of front(), begin(), or end() does not cause a data race, but in general this function is not thread-safe. The behaviour may be undefined if erasing an element from the list while another thread is calling the same function, or incrementing an iterator into the list, or accessing the element being erased (unless it is accessed through an iterator). β οΈ like, be careful bestie, this is the dangerous part.
Parameters
__pβ A dereferenceable iterator.
Returns
- An iterator the element after the one that was erased (or
end()if there is no such element).
Since C++20
References erase_after().
Referenced by erase_after().
π§ const tzdb & std::chrono::tzdb_list::front () const [noexcept]
Access the current tzdb at the front of the list. it's giving β¨ the main event β¨
This returns a reference to the same object as chrono::get_tzdb().
Returns
- A reference to the current
tzdbobject.
Since C++20
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code. π€ no human wrote this, and honestly? she still ate.
and that's the whole page, bestie π«Ά this one shipped from the libstdc++ source, and the footer had no date on it β she's timeless, an icon, a legend, and she is literally the manual page std::chrono::tzdb_list(3). mwah π
π
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms