Back to Arangodb

BOOST_PP_INC

3rdParty/boost/1.78.0/libs/preprocessor/doc/ref/inc.html

3.12.9.11.0 KB
Original Source

The BOOST_PP_INC macro expands to one more than its argument.

Usage

BOOST_PP_INC (x)

Arguments

x The value to be incremented. Valid values range from 0 to BOOST_PP_LIMIT_MAG.

Remarks

If x is BOOST_PP_LIMIT_MAG , the result is saturated to BOOST_PP_LIMIT_MAG.

See Also

Requirements

Header: <boost/preprocessor/arithmetic/inc.hpp>

Sample Code

#include <[boost/preprocessor/arithmetic/inc.hpp](../headers/arithmetic/inc.html)>[BOOST\_PP\_INC](inc.html)([BOOST\_PP\_INC](inc.html)(6)) // expands to 8[BOOST\_PP\_INC](inc.html)(4) // expands to 5

Copyright Housemarque Oy 2002 Copyright Paul Mensonides 2002

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)