/* * Merge * */ template<class In, class In2, class Out> Out merge(In first, In last, In2 first2, In2 last2, Out res); template<class In, class In2, class Out, class Cmp> Out merge(In first, In last, In2 first2, In2 last2, Out res, Cmp cmp); template<class Bi> void inplace_merge(Bi first, Bi middle, Bi last); template<class Bi, class Cmp> void inplace_merge(Bi first, Bi middle, Bi last, Cmp cmp);