The BOOST_PP_ARRAY_POP_BACK macro pops an element from the end of an array.

Usage

BOOST_PP_ARRAY_POP_BACK(array)

Arguments

array
The array to pop an element from.

Remarks

This macro returns array after removing the last element.  If array has no elements, the result of applying this macro is undefined.
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_ARRAY_POP_BACK_Z

See Also

Requirements

Header:  <boost/preprocessor/array/pop_back.hpp>

Sample Code

#include <boost/preprocessor/array/pop_back.hpp>

#define ARRAY (3, (a, b, c))

BOOST_PP_ARRAY_POP_BACK(ARRAY) // expands to (2, (a, b))

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)