cptr::detail::basic_forward_list::merge

Merge sorted other into this sorted list; stable, this list's elements come first among equals. If comp throws, the elements merged so far and the rest of this list stay here, the rest of other stays in other, and the exception propagates.

Synopsis

Declared in <cptr/forward_list.hpp>

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

Parameters

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