std::chrono::tzdb_list(3cxx)

πŸ’– NAME πŸ’–

std::chrono::tzdb_list β€” okay bestie, welcome to the std::chrono::tzdb_list(3cxx) manual page from libstdc++. This is the whole vibe for the list of chrono::tzdb objects. πŸ’…

✨ SYNOPSIS ✨

#include <chrono>

πŸŽ€ Classes πŸŽ€

  • class const_iterator β€” the one class listed here, and yes it’s exactly this.

🌸 Public Member Functions 🌸

  • tzdb_list (const tzdb_list &)=delete β€” yep, this exact signature is marked =delete.
  • const_iterator begin () const noexcept β€” the begin iterator, with noexcept.
  • const_iterator cbegin () const noexcept β€” the cbegin iterator, with noexcept.
  • const_iterator cend () const noexcept β€” the cend iterator, with noexcept.
  • const_iterator end () const noexcept β€” the end iterator, with noexcept.
  • const_iterator erase_after (const_iterator __p) β€” erase-after, takes a const_iterator __p; full tea is below.
  • const tzdb & front () const noexcept β€” front access, returns const tzdb &, with noexcept.
  • tzdb_list & operator= (const tzdb_list &)=delete β€” assignment is deleted, periodt.

πŸ¦‹ Friends πŸ¦‹

  • const tzdb & get_tzdb () β€” friend.
  • tzdb_list & get_tzdb_list () β€” friend.
  • class leap_second β€” friend class.
  • const tzdb & reload_tzdb () β€” friend.
  • struct time_zone::_Impl β€” friend struct.
  • class time_zone_link β€” friend class.
  • struct tzdb β€” friend struct.

🌈 DETAILED DESCRIPTION 🌈

It’s the list of chrono::tzdb objects. Exactly that. A single object of this type is constructed by the C++ runtime, and you can access it by calling chrono::get_tzdb_list().

The front of the list is the current tzdb object, and you can get to it via chrono::get_tzdb_list().front() or chrono::get_tzdb() or *chronoget_tzdb_list().begin(). Iykyk. πŸ¦‹

The chrono::reload_tzdb() function will check for a newer version and if found, insert it at the front of the list. Newer tzdb sliding into the front? Slay. ✨

Since β€” C++20.

πŸ‘‘ MEMBER FUNCTION DOCUMENTATION πŸ‘‘

πŸŽ€ const_iterator std::chrono::tzdb_list::erase_after (const_iterator __p) πŸŽ€

This one removes the tzdb object after the one the iterator refers to. πŸ’…

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).

⚠️ Thread-safety tea, bestie: no data race when called concurrently with front(), begin(), or end(), but in general this function is not thread-safe. Undefined behaviour may happen in those listed cases, so don’t treat it like a free-for-all. 😭

Parameters β€” __p: A dereferenceable iterator.

Returns β€” An iterator to the element after the one that was erased (or end() if there is no such element).

Since β€” C++20.

🌸 const tzdb & std::chrono::tzdb_list::front () const [noexcept] 🌸

Access the current tzdb at the front of the list. 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.


Source/version: libstdc++. Page: std::chrono::tzdb_list(3cxx). Date: not listed in this footer, so no fake date, periodt. That’s the cute sign-off, bestie β€” mwah, and go enjoy those tzdb vibes. πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from