Daily bit(e) of C++ | std::merge
Daily bit(e) of C++ #395, The algorithm for merging two ranges into a third: std::merge.
The std::merge algorithm merges two sorted ranges, outputting into a third range.
The algorithm is stable. Equal elements from the first range precede elements from the second range, and the order of equal elements is otherwise unchanged.