June 2025
Intermediate to advanced
1093 pages
33h 24m
English
The <numeric> header contains some functions that are useful in the context of numerical calculations. The functions work together with pairs of iterators or ranges. They are used on containers (or streams) that contain numerical values—that is, support arithmetic operators.
Some algorithms have received more general variants of these functions with C++23 and ranges in the <ranges> header in the std::ranges:: namespace and are summarized as fold operations. They all start with fold_ in their names. In the following list, you will see a reference to the more specific function in the corresponding description of the fold function. For example, fold_left is a more general form of ...
Read now
Unlock full access