absl::c_inplace_merge

c_inplace_merge overloads

Synopses

Declared in <absl/algorithm/container.h>

Container-based version of the <algorithm> std::inplace_merge() function to merge a supplied iterator middle into a container.

template<typename C>
void
c_inplace_merge(
    C& c,
    /* implementation-defined */ middle);
» more...

Overload of c_inplace_merge() for performing a merge using a comp other than operator<.

template<
    typename C,
    typename LessThan>
void
c_inplace_merge(
    C& c,
    /* implementation-defined */ middle,
    LessThan&& comp);
» more...

Parameters

NameDescription
cThe container holding the two consecutive sorted ranges to merge.
middleAn iterator to the start of the second sorted range.
compThe comparison used to order the elements.