The BOOST_PP_TUPLE_REVERSE macro reverses a tuple.

Usage

BOOST_PP_TUPLE_REVERSE(tuple) (v)

or

BOOST_PP_TUPLE_REVERSE(size, tuple) (v)

Arguments

size
The size of the tuple to be reversed.  The argument is ignored.
The tuple to be reversed.

Remarks

You can invoke the variadic macro (v) as BOOST_PP_TUPLE_REVERSE(tuple) or BOOST_PP_TUPLE_REVERSE(size,tuple) for backward compatibility.

See Also

Requirements

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

Sample Code

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

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

Copyright Housemarque Oy 2002
Copyright Paul Mensonides 2002
Copyright Edward Diener 2011,2013,2020

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)