February 2024
Intermediate to advanced
816 pages
20h 7m
English
The standard library contains many general-purpose utilities and libraries beyond the containers, algorithms, and iterators discussed in the previous chapter. This chapter is focused on three areas: the chrono library for working with dates, times, calendars, and time zones; type traits, which provide meta-information about other types; and utility types in newer versions of the standard, std::any, std::optional, and std::variant in C++17, std::span and std::source_location in C++20, and std::mdspan and std::expected in C++23.
The recipes included in this chapter are as follows:
chrono::durationRead now
Unlock full access