September 2020
Intermediate to advanced
750 pages
16h 14m
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 the new C++17 types std::any, std::optional, and std::variant and the C++20 type std::span.
The recipes included in this chapter are as follows:
chrono::durationstd::any to store any value ...Read now
Unlock full access