bsl::list::sort

Sort this list in non-decreasing order using operator<.

Synopsis

Declared in <bslstl_list.h>

void
sort();

Description

operator< must provide a strict weak ordering over value_type (see []and Strict Weak Ordering)). The sort is stable, meaning that if !(a < b) && !(b < a), then the ordering of elements a and b in the sequence is preserved.