inplace_merge [C++ Reference]
Keywords: stl,algorithm,inplace_merge
Date: 2009-10-09T01:56:40-0700

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

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

## inplace_merge

Syntax:

        #include <algorithm>
        void inplace_merge( bidirectional_iterator start, bidirectional_iterator middle, bidirectional_iterator end );
        void inplace_merge( bidirectional_iterator start, bidirectional_iterator middle, bidirectional_iterator end, StrictWeakOrdering cmp );

The inplace_merge() function is similar to the merge() function, but instead of creating a new sorted range of elements, inplace_merge() alters the existing ranges to perform the merge in-place.

Related Topics: merge

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