absl::c_inplace_merge

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

Synopsis

Declared in <absl/algorithm/container.h>

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

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.