Simple Application Framework
1
|
Algorithms for finding minimum and maximum values.
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::Selection |
Selection algorithms. | |
Functions | |
template<class T > | |
T | Saf::Algo::Selection::Max (const T &x, const T &y) |
Get a maximum of two numbers. | |
template<class T , class Pred > | |
T | Saf::Algo::Selection::Max (const T &x, const T &y, Pred pred) |
Get a maximum of two numbers using a predicate pred . | |
template<class T > | |
T | Saf::Algo::Selection::Max (const T &x, const T &y, const T &z) |
Get a maximum of three numbers. | |
template<class T , class Pred > | |
T | Saf::Algo::Selection::Max (const T &x, const T &y, const T &z, Pred pred) |
Get a maximum of three numbers using a predicate pred . | |
template<class T > | |
T | Saf::Algo::Selection::Min (const T &x, const T &y) |
Get a minimum of two numbers. | |
template<class T , class Pred > | |
T | Saf::Algo::Selection::Min (const T &x, const T &y, Pred pred) |
Get a minimum of two numbers using a predicate pred . | |
template<class T > | |
T | Saf::Algo::Selection::Min (const T &x, const T &y, const T &z) |
Get a minimum of three numbers. | |
template<class T , class Pred > | |
T | Saf::Algo::Selection::Min (const T &x, const T &y, const T &z, Pred pred) |
Get a minimum of three numbers using a predicate pred . | |
template<class T , class Pred > | |
Collection::Pair< T, T > | Saf::Algo::Selection::MinMax (const T &x, const T &y, Pred pred) |
Get simultaneously a minimum and a maximum of two values. | |
template<class T > | |
Collection::Pair< T, T > | Saf::Algo::Selection::MinMax (const T &x, const T &y) |
Get simultaneously a minimum and a maximum of two values. | |
template<class T , class Pred > | |
Collection::Pair< T, T > | Saf::Algo::Selection::MinMax (const T &x, const T &y, const T &z, Pred pred) |
Get simultaneously a minimum and a maximum of three values. | |
template<class T > | |
Collection::Pair< T, T > | Saf::Algo::Selection::MinMax (const T &x, const T &y, const T &z) |
Get simultaneously a minimum and a maximum of three values. |
Algorithms for finding minimum and maximum values.