C++ Boost

Boost.Preprocessor

Header <boost/preprocessor/max.hpp>


Prev Next Macros Headers

#define BOOST_PP_MAX(X,Y)

Expands to the maximum of X and Y.

Both X and Y must expand to integer literals in the range [0, BOOST_PP_LIMIT_MAG].

For example, BOOST_PP_MAX(5,7) expands to 7 (a single token).

Test


#define BOOST_PP_MAX_D(D,X,Y)

Can be used inside BOOST_PP_WHILE() (see for an explanation of the D parameter).


Prev Next Macros Headers

Revised

© Copyright Housemarque Oy 2002

Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.