cptr::detail::basic_list::merge

Merge sorted other into this sorted list. Stable: of equal elements, this list's come first. If comp throws, the elements moved so far stay here, the rest stay in other, both sizes are right, and the exception propagates.

Synopsis

Declared in <cptr/list.hpp>

template<class Compare = std::less<>>
void
merge(
    basic_list& other,
    Compare comp = Compare());

Parameters

NameDescription
otherThe class behind cptr::list; use that alias. Its members behave like those of std::list; the alias lists the differences.