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.
Declared in <cptr/forward_list.hpp>
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.
template<class Compare = std::less<>>
void
merge(
basic_forward_list& other,
Compare comp = Compare());
» more...
template<class Compare = std::less<>>
void
merge(
basic_forward_list&& other,
Compare comp = Compare());
» more...