First page Back Continue Last page Graphics
list cont.
c.sort( ) - sorts all elements with operator <
c.sort(op) – sorts all elements with op( )
c1.merge(c2) – Assuming both containers contain the elements sorted, moves all elements of c2 into c1 so that all elements are merged and still sorted.
c1.merge(c2, op) Assuming both containers contain the elements sorted due to the sorting criteria op( ), moves all elements of c2 into c1 so that all elements are merged and still sorted according to op( )
c.reverse( ) reverses the order of all elements