merge [C++ Reference]
Keywords: stl,list,merge
Date: 2008-10-14T15:42:06-0700

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

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

## merge

Syntax:

        #include <list>
        void merge( list &lst );
        void merge( list &lst, BinPred compfunction );

The function merge() merges the list with lst, producing a combined list that is ordered with respect to the < operator. If compfunction is specified, then it is used as the comparison function for the lists instead of <.

merge() runs in linear time.

Related Topics: List operators, insert, splice

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