![]() |
My Project
|
some useful template functions. More...
Go to the source code of this file.
Functions | |
| template<class T> | |
| T | tmax (const T &a, const T &b) |
| template<class T> | |
| T | tmin (const T &a, const T &b) |
| template <class T> inline T tmin ( const T & a, const T & b ) | |
some useful template functions.
Header file corresponds to: nothing
Hierarchy: bottom, templates
Sooner or later you need them: functions to calculate the minimum or maximum of two values or the absolute value. Here they are. All of them are inlined, hence there is no source file corresponding to `ftmpl_functions.h'.
The functions are for internal use only (i.e., to build the library), hence they should not be included from factory.h'. However, we have to install ftmpl_functions.h' with the other templates since the functions have to be instantiated.
**/
/** template <class T> inline T tmax ( const T & a, const T & b )
tmax() - return the maximum of a' and b'.
T' should have an operator >()'.
Definition in file ftmpl_functions.h.
Definition at line 39 of file ftmpl_functions.h.