SHA_Sort::MergeWithBuffer< Container, IT > Class Template Reference
#include <merge.hxx>
Public Member Functions | |
void | operator() (IT begin, IT middle, IT end) |
Detailed Description
template<typename Container, typename IT>
class SHA_Sort::MergeWithBuffer< Container, IT >
MergeWithBuffer - Merging of two ordered sequences of a collection using intermediate buffer Proceed a merge of two sequences of elements contained in [begin, middle[ and [middle, end[.
- Warning
- Both sequence [bengin, middle[ and [middle, end[ need to be ordered.
- Remarks
- use MergeInPlace to proceed the merge in place: Takes lower memory consumption and higher computation consumption.
- Complexity
- O(N).
- Template Parameters
-
IT type.
- Parameters
-
begin,middle,end iterators to the initial and final positions of the sequence to be sorted. The range used is [first,last), which contains all the elements between first and last, including the element pointed by first but not the element pointed by last.
- Returns
- void.
Member Function Documentation
template<typename Container, typename IT>
|
inline |
The documentation for this class was generated from the following file: