partition - C++ Reference

template BidirectionalIterator partition (BidirectionalIterator first, BidirectionalIterator last, UnaryPredicate pred); template ForwardIterator partition (ForwardIterator first, ForwardIterator last, UnaryPredicate pred); Rearranges the elements from the range [first,last), in such a way that all the elements for which pred returns true precede all those for which it returns false.

Actions
Connections