"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org"> merge cppreference.com > "index.html">C++ Lists > merge 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: Container operators insert splice