The BOOST_PP_TUPLE_POP_FRONT macro pops an element from the beginning of a tuple.

Usage

BOOST_PP_TUPLE_POP_FRONT(tuple) (v)

Arguments

tuple
The tuple to pop an element from.

Remarks

This macro returns tuple after removing the first element.  If tuple has only a single element, it remains unchanged since a tuple must have at least one element.
This macro uses BOOST_PP_REPEAT internally.  Therefore, to use the z parameter passed from other macros that use BOOST_PP_REPEAT, see BOOST_PP_TUPLE_POP_FRONT_Z

See Also

Requirements

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

Sample Code

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

#define TUPLE (a, b, c)

BOOST_PP_TUPLE_POP_FRONT(TUPLE) // expands to (b, c)

© Copyright Edward Diener 2013

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)