Min and max functions
[QuantLib macros]


Detailed Description

Some compilers still do not define std::min and std::max. Moreover, Visual C++ 6 defines them but for unfathomable reasons garble their names. For the code to be portable these macros had to be used instead of the actual functions. However, Boost provides the means of bypassing this limitation; therefore, all these macros are now deprecated in favor of the actual functions in namespace std.


Defines

#define QL_MIN   std::min
 minimum between two elements
#define QL_MAX   std::max
 maximum between two elements


Define Documentation

#define QL_MIN   std::min
 

minimum between two elements

Deprecated:
use std::min instead

#define QL_MAX   std::max
 

maximum between two elements

Deprecated:
use std::max instead


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen