Back to Arangodb

BOOST_PP_SLOT

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

3.12.9.11.2 KB
Original Source

The BOOST_PP_SLOT macro retrieves a value previously evaluated by BOOST_PP_ASSIGN_SLOT.

Usage

BOOST_PP_SLOT (i)

Arguments

i The slot index to be retrieved. This value must be in the range of 1 to BOOST_PP_LIMIT_SLOT_COUNT.

Remarks

Prior to use, the slot at index i must have been assigned with BOOST_PP_ASSIGN_SLOT.

See Also

Requirements

Header: <boost/preprocessor/slot/slot.hpp>

Sample Code

#include <[boost/preprocessor/slot/slot.hpp](../headers/slot/slot.html)>

#define X() 4

#define[BOOST\_PP\_VALUE](value.html)1 + 2 + 3 + X()
#include[BOOST\_PP\_ASSIGN\_SLOT](assign_slot.html)(1)

#undef X[BOOST\_PP\_SLOT](slot.html)(1) // expands to 10

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)