1.5.3.11 Partitioning


nth_element(r,r,r)
nth_element(r,r,r,bpred)

Partition a range of values so that the value pointed to by the middle r in the parameter list is in its correct sorted position, and no element to its left is greater than any element to its right.



b partition(b,b,upred)

Partition a range of values using a predicate, and return an iterator pointing to the first value for which upred returns false.



b stable_partition(b,b,upred)

Partition a range using a predicate without altering the relative order of the values, and return an iterator pointing to the first value for which upred returns false.