stable_partition [C++ Reference]
Keywords: stl,algorithm,stable_partition
Date: 2009-10-09T01:59:55-0700

[[stable_partition]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## stable_partition

Syntax:

        #include <algorithm>
        bidirectional_iterator stable_partition( bidirectional_iterator start, bidirectional_iterator end, Predicate p );

The stable_partition() function behaves similarily to partition(). The difference between the two algorithms is that stable_partition() will preserve the initial ordering of the elements in the two groups.

Related Topics: partition

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •