11.8.3 Permuting Elements
bool next_permutation (BidirectionalIterator beg, BidirectionalIterator end) bool next_permutation (BidirectionalIterator beg, BidirectionalIterator end, BinaryPredicate op) bool prev_permutation (BidirectionalIterator beg, BidirectionalIterator end) bool prev_permutation (BidirectionalIterator beg, BidirectionalIterator end, BinaryPredicate op) • next_permutation() changes the order of the elements in [beg,end) according to the next permutation. • prev_permutation() changes the order of the elements in [beg,end) according to the previous permutation. • The first forms compare the elements by using operator