: The sort function may invoke the following element access functions:
Operations of the random-access iterator of the actual template argument
(as per
[random.access.iterators]),
as implied by the name of the template parameter
RandomAccessIterator.The
swap function on the elements of the sequence (as per the
preconditions specified in
[sort])
.The user-provided
Compare function object
.
—
end example