---
name: "std::chrono::tzdb_list"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::chrono::tzdb_list"
---

# std::chrono::tzdb\_list(3)

## NAME

std::chrono::tzdb\_list

## SYNOPSIS

\#include \<chrono\>

### Classes

class **const\_iterator**\

### Public Member Functions

**tzdb\_list** (const tzdb\_list &)=delete\
 **const\_iterator** **begin** () const noexcept\
 **const\_iterator** **cbegin** () const noexcept\
 **const\_iterator** **cend** () const noexcept\
 **const\_iterator** **end** () const noexcept\
 **const\_iterator** **erase\_after** (**const\_iterator** \_\_p)\
 const tzdb & **front** () const noexcept\
 tzdb\_list & **operator=** (const tzdb\_list &)=delete\

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

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

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

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.
