Sort this list in non‐decreasing order using the specified comparator.
Synopsis
Declared in <bslstl_list.h>
template<class COMPARE>
void
sort(COMPARE comparator);
Description
comparator must define a strict weak ordering over value_type (see []and Strict Weak Ordering)). The sort is stable, meaning that if !comparator(a, b) && !comparator(b, a), then the ordering of elements a and b in the sequence is preserved.
Parameters
Name |
Description |
comparator |
binary predicate defining the sort order |
Created with MrDocs