vtf-logo

Algorithm: Minimim and Maximum


Functions

template<typename T>
const T & ads::min (const T &a, const T &b, const T &c)
 This does what you think it does.
template<typename T>
const T & ads::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 & ads::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 & ads::max (const T &a, const T &b, const T &c)
 This does what you think it does.
template<typename T>
const T & ads::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 & ads::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 & ads::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 & ads::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 & ads::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 & ads::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 & ads::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 & ads::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.

Function Documentation

template<typename T, typename Compare>
const T& ads::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.

template<typename T, typename Compare>
const T& ads::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.

template<typename T, typename Compare>
const T& ads::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.

template<typename T>
const T& ads::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.

template<typename T>
const T& ads::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.

template<typename T>
const T& ads::max ( 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 greatest of the parameters.

template<typename T, typename Compare>
const T& ads::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.

template<typename T, typename Compare>
const T& ads::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.

template<typename T, typename Compare>
const T& ads::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.

template<typename T>
const T& ads::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.

template<typename T>
const T& ads::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.

template<typename T>
const T& ads::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.


Generated on Fri Aug 24 12:55:37 2007 for Algorithms and Data Structures Package by  doxygen 1.4.7