###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

# #include <boost/preprocessor/dec.hpp>

## #define BOOST_PP_DEC(X)

Decrements `X` expanding to a single token.

For example, `BOOST_PP_DEC(3)` expands to `2` (a single token).

BOOST_PP_DEC() uses saturation arithmetic. Decrementing 0 yeilds a 0.

Only decimal integer literals in the range [0,BOOST_PP_LIMIT_MAG] are supported.

## #define BOOST_PREPROCESSOR_DEC(X)

Obsolete. Use BOOST_PP_DEC().

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.