VIPER REFERENCE MANUAL


NAME
iflMin, iflMax - simple min/max template functions

HEADER FILE
#include <ifl/iflMinMax.h>

SYNOPSIS

   Getting the minimum value
template<class T> inline T iflMin ( a, T b);
template<class T> inline T iflMin ( a, T b, T c);
template<class T> inline T iflMin ( a, T b, T c, T d);

   Getting the maximum value
template<class T> inline T iflMax ( a, T b);
template<class T> inline T iflMax ( a, T b, T c);
template<class T> inline T iflMax ( a, T b, T c, T d);

DESCRIPTION
This header defines a set of simple inline functions to determine the minimum or maximum of two, three or four input values.

FUNCTION DESCRIPTIONS

   iflMax()
template<class T> inline T iflMax ( a, T b);
template<class T> inline T iflMax ( a, T b, T c);
template<class T> inline T iflMax ( a, T b, T c, T d);

These functions return the maximum of their argument values. Since these are template function they can be used with any data type that > makes sense on.

   iflMin()
template<class T> inline T iflMin ( a, T b);
template<class T> inline T iflMin ( a, T b, T c);
template<class T> inline T iflMin ( a, T b, T c, T d);

These functions return the minimum of their argument values. Since these are template function they can be used with any data type that < makes sense on.