|
template<class T > |
const T & | ace_min (const T &t1, const T &t2) |
|
template<class T > |
const T & | ace_max (const T &t1, const T &t2) |
|
template<class T > |
const T & | ace_min (const T &t1, const T &t2, const T &t3) |
|
template<class T > |
const T & | ace_max (const T &t1, const T &t2, const T &t3) |
|
template<class T > |
const T & | ace_range (const T &min, const T &max, const T &val) |
|
- Id:
- Min_Max.h 80826 2008-03-04 14:51:23Z wotte
Define an appropriate set of min()/max() functions using templates.
- Author
- Derek Dominish Derek.nosp@m..Dom.nosp@m.inish.nosp@m.@Aus.nosp@m.trali.nosp@m.a.Bo.nosp@m.eing..nosp@m.com
#define ACE_MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ace_max((a),(b)) |
#define ACE_MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ace_min((a),(b)) |
#define ACE_RANGE |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| ace_range((a),(b),(c)) |
template<class T >
const T& ace_max |
( |
const T & |
t1, |
|
|
const T & |
t2 |
|
) |
| |
|
inline |
template<class T >
const T& ace_max |
( |
const T & |
t1, |
|
|
const T & |
t2, |
|
|
const T & |
t3 |
|
) |
| |
|
inline |
template<class T >
const T& ace_min |
( |
const T & |
t1, |
|
|
const T & |
t2 |
|
) |
| |
|
inline |
template<class T >
const T& ace_min |
( |
const T & |
t1, |
|
|
const T & |
t2, |
|
|
const T & |
t3 |
|
) |
| |
|
inline |
template<class T >
const T& ace_range |
( |
const T & |
min, |
|
|
const T & |
max, |
|
|
const T & |
val |
|
) |
| |
|
inline |