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

Name

Description

c

The container holding the two consecutive sorted ranges to merge.

middle

An iterator to the start of the second sorted range.

comp

The comparison used to order the elements.

Created with MrDocs