The BOOST_PP_TUPLE_REM macro expands to a macro that removes the parentheses from a tuple.

Usage

BOOST_PP_TUPLE_REM(size)

or

BOOST_PP_TUPLE_REM(size) (v)

Arguments

size
The size of the tuple from which the parentheses are to be removed.  Valid tuple sizes range from 1 to BOOST_PP_LIMIT_TUPLE

Remarks

The size argument must be the actual size of the tuple in the non-variadic version.

For the variadic version (v) the size may be left out completely so that the macro can be invoked as BOOST_PP_TUPLE_REM(); you may get a warning from some compilers, but the functionality will still work. If you specify a size in the variadic version, it will be ignored, but the warning from some compilers will not occur.

See Also

Requirements

Header:  <boost/preprocessor/tuple/rem.hpp>

Sample Code

#include <boost/preprocessor/tuple/rem.hpp>

BOOST_PP_TUPLE_REM(3)(x, y, z) // expands to x, y, z

// or for the variadic version (v)

BOOST_PP_TUPLE_REM()(x, y, z) // expands to x, y, z

© Copyright Housemarque Oy 2002
© Copyright Paul Mensonides 2002
© Copyright Edward Diener 2011

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)