###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

# #include <boost/preprocessor/comparison/less.hpp>

## #define BOOST_PP_LESS(X,Y)

Expands to `1` if `X < Y` and `0` otherwise.

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

For example, `BOOST_PP_LESS(2,6)` expands to `1`.

### Uses

- BOOST_PP_WHILE()

### Test

- arithmetic_test.cpp

## #define BOOST_PP_LESS_D(D,X,Y)

Can be used inside BOOST_PP_WHILE().

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.