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