Simple Application Framework
1
|
Heap sort algorithm.
Go to the source code of this file.
Namespaces | |
namespace | Saf |
Global library namespace. | |
namespace | Saf::Algo |
Generic data handling algorithms and structures. | |
namespace | Saf::Algo::Sort |
Sorting algorithms. | |
Functions | |
template<class FwdIter , class Pred > | |
void | Saf::Algo::Sort::HeapSort (FwdIter begin, FwdIter end, Pred pred) |
Sort the sequence [begin, end) according to pred using the heap sort algorithm. | |
template<class FwdIter > | |
void | Saf::Algo::Sort::HeapSort (FwdIter begin, FwdIter end) |
Sort the sequence [begin, end) from smallest to largest elements using the heap sort algorithm. |
Heap sort algorithm.