August 2020
Beginner to intermediate
653 pages
16h 55m
English
The previous Exploration introduced vectors and ranges using std::ranges::sort to sort a vector of integers. This Exploration examines ranges in more depth and introduces more generic algorithms, which perform useful operations on ranges of objects.
The std::ranges::sort function is an example of a generic algorithm, so named because these functions implement common algorithms and operate generically. That is, they work for just about anything you can express as a sequential range of values. Most of the standard algorithms are declared in the <algorithm> header, although the <numeric> ...
Read now
Unlock full access