In the C++ Standard Library, algorithms are components that perform algorithmic operations on containers and other sequences.
The C++ standard provides some standard algorithms collected in the <algorithm>
standard header. A handful of algorithms are also in the <numeric>
header. All algorithms are in the std
namespace.
The algorithms in the C++ Standard Library can be organized into the following categories.
const word is used to give a permanent value to a variable.