Algorithm: Minimim and Maximum

Functions

template<typename T >
const T & min (const T &a, const T &b, const T &c)
 This does what you think it does.
template<typename T >
const T & min (const T &a, const T &b, const T &c, const T &d)
 This does what you think it does.
template<typename T >
const T & min (const T &a, const T &b, const T &c, const T &d, const T &e)
 This does what you think it does.
template<typename T >
const T & max (const T &a, const T &b, const T &c)
 This does what you think it does.
template<typename T >
const T & max (const T &a, const T &b, const T &c, const T &d)
 This does what you think it does.
template<typename T >
const T & max (const T &a, const T &b, const T &c, const T &d, const T &e)
 This does what you think it does.
template<typename T , typename Compare >
const T & min (const T &a, const T &b, const T &c, Compare comp)
 This does what you think it does.
template<typename T , typename Compare >
const T & min (const T &a, const T &b, const T &c, const T &d, Compare comp)
 This does what you think it does. comp is a comparison functor.
template<typename T , typename Compare >
const T & min (const T &a, const T &b, const T &c, const T &d, const T &e, Compare comp)
 This does what you think it does. comp is a comparison functor.
template<typename T , typename Compare >
const T & max (const T &a, const T &b, const T &c, Compare comp)
 This does what you think it does.
template<typename T , typename Compare >
const T & max (const T &a, const T &b, const T &c, const T &d, Compare comp)
 This does what you think it does. comp is a comparison functor.
template<typename T , typename Compare >
const T & max (const T &a, const T &b, const T &c, const T &d, const T &e, Compare comp)
 This does what you think it does. comp is a comparison functor.

Detailed Description


Function Documentation

template<typename T , typename Compare >
const T& max ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
const T &  e,
Compare  comp 
) [inline]

This does what you think it does. comp is a comparison functor.

Returns:
The greatest of the parameters.

References max().

template<typename T , typename Compare >
const T& max ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
Compare  comp 
) [inline]

This does what you think it does. comp is a comparison functor.

Returns:
The greatest of the parameters.

References max().

template<typename T , typename Compare >
const T& max ( const T &  a,
const T &  b,
const T &  c,
Compare  comp 
) [inline]

This does what you think it does.

Parameters:
a A thing of arbitrary type.
b Another thing of arbitrary type.
c Yet another thing of arbitrary type.
comp A comparison functor.
Returns:
The greatest of the parameters.

References max().

template<typename T >
const T& max ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
const T &  e 
) [inline]

This does what you think it does.

Returns:
The greatest of the parameters.

References max().

template<typename T >
const T& max ( const T &  a,
const T &  b,
const T &  c,
const T &  d 
) [inline]

This does what you think it does.

Returns:
The greatest of the parameters.

References max().

template<typename T >
const T& max ( const T &  a,
const T &  b,
const T &  c 
) [inline]
template<typename T , typename Compare >
const T& min ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
const T &  e,
Compare  comp 
) [inline]

This does what you think it does. comp is a comparison functor.

Returns:
The least of the parameters.

References min().

template<typename T , typename Compare >
const T& min ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
Compare  comp 
) [inline]

This does what you think it does. comp is a comparison functor.

Returns:
The least of the parameters.

References min().

template<typename T , typename Compare >
const T& min ( const T &  a,
const T &  b,
const T &  c,
Compare  comp 
) [inline]

This does what you think it does.

Parameters:
a A thing of arbitrary type.
b Another thing of arbitrary type.
c Yet another thing of arbitrary type.
comp A comparison functor.
Returns:
The least of the parameters.

References min().

template<typename T >
const T& min ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
const T &  e 
) [inline]

This does what you think it does.

Returns:
The least of the parameters.

References min().

template<typename T >
const T& min ( const T &  a,
const T &  b,
const T &  c,
const T &  d 
) [inline]

This does what you think it does.

Returns:
The least of the parameters.

References min().

template<typename T >
const T& min ( const T &  a,
const T &  b,
const T &  c 
) [inline]

This does what you think it does.

Parameters:
a A thing of arbitrary type.
b Another thing of arbitrary type.
c Yet another thing of arbitrary type.
Returns:
The least of the parameters.

Referenced by IndexRange< N, T >::compute_intersection(), FixedArray< N, T >::computeMinimum(), and min().

Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3