Since lists allow fast insertion and erasing from the middle of a list, certain
operations are provided specifically for them
.
In this subclause,
arguments for a template parameter
named
Predicate or
BinaryPredicate
shall meet the corresponding requirements in
[algorithms.requirements]. The semantics of
i + n and
i - n,
where
i is an iterator into the list and
n is an integer,
are the same as those of
next(i, n) and
prev(i, n),
respectively
. For
merge and
sort,
the definitions and requirements in
[alg.sorting] apply
.