See the first merge overload above.
merge
Declared in <bslstl_list.h>
<bslstl_list.h>
template<class COMPARE> void merge( BloombergLP::bslmf::MovableRef<list> other, COMPARE comparator);