As with modifying algorithms, you can’t use an associative container as a destination, because the elements of the associative containers are considered to be constant. Lists and forward lists do not provide random-access iterators, so you can’t call sorting algo- rithms for them either. However, both provide a member function sort() to sort their elements; see Section 8.8.1, page 422.