Conventions
What are the rules and terminologies needed to run algorithms? Let's find out.
To use the algorithms, you have to keep a few rules in your head.
The algorithms are defined in various headers.
<algorithm>
:
Contains the general algorithms.
<numeric>
:
Contains the numeric algorithms.
Many of the algorithms have the name suffix
_if
and _copy
.
_if
:
The algorithm can be parametrized by a predicate.
_copy
:
The algorithm copies its elements in another range.
Algorithms like auto num =
...