• Both forms are a combination of copy() and partial_sort().
• They copy elements from the source range [sourceBeg,sourceEnd) sorted into the destination
range [destBeg,destEnd).
• The number of elements that are sorted and copied is the minimum number of elements in the
source range and in the destination range.
• Both forms return the position after the last copied element in the destination range (the first
element that is not overwritten).