Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Functions
Saf/Algo/Sort/HeapSort.h File Reference

Heap sort algorithm.
More...

#include "../../Type.h"
#include "../Struct/Heap.h"
#include "../Predicate.h"

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.

Detailed Description

Heap sort algorithm.
Author:
Ondrej Danek ondre.nosp@m.j.da.nosp@m.nek@g.nosp@m.mail.nosp@m..com
Date:
2012