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, noexcept so she's chill about it
  • const_iterator cbegin () const noexcept β€” const version of begin(), same energy, noexcept
  • const_iterator cend () const noexcept β€” const version of end(), noexcept
  • const_iterator end () const noexcept β€” iterator past the end of the list, noexcept
  • const_iterator erase_after (const_iterator __p) β€” remove the element after the one your iterator points at πŸ‘€
  • const tzdb & front () const noexcept β€” grab the current tzdb at the front of the list, noexcept
  • tzdb_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_second
  • const tzdb & reload_tzdb ()
  • struct time_zone::_Impl
  • class time_zone_link
  • struct 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 tzdb object.

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