Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

Functions

template<typename T, typename R>
const T & median (const T &a, const T &b, const T &c, R r)
 median implementation
template<typename T, typename R>
T & median (T &a, T &b, T &c, R r)
 median implementation
template<typename T>
const T & median (const T &a, const T &b, const T &c)
 median implementation
template<typename T>
T & median (T &a, T &b, T &c)
 median implementation

Detailed Description

As with adobe::min and adobe::max, adobe::median is a select algorithm. The median algorithm returns the second of three arguments. The algorithm is stable, which is to say that if the arguments are in non-decresing order then the identity of the returned element will be the second identity of the second argument.

See also

Function Documentation

◆ median() [1/4]

template<typename T, typename R>
const T & median ( const T & a,
const T & b,
const T & c,
R r )

Definition at line 41 of file median.hpp.

◆ median() [2/4]

template<typename T, typename R>
T & median ( T & a,
T & b,
T & c,
R r )

Definition at line 50 of file median.hpp.

◆ median() [3/4]

template<typename T>
const T & median ( const T & a,
const T & b,
const T & c )

Definition at line 59 of file median.hpp.

◆ median() [4/4]

template<typename T>
T & median ( T & a,
T & b,
T & c )

Definition at line 68 of file median.hpp.