3rdParty/boost/1.78.0/libs/preprocessor/doc/ref/identity.html
The BOOST_PP_IDENTITY macro expands to its argument when invoked.
BOOST_PP_IDENTITY (item)()
item The result of the expansion.
This macro is designed to be used with BOOST_PP_IF and BOOST_PP_IIF when only one of the clauses needs to be invoked.
Header: <boost/preprocessor/facilities/identity.hpp>
#include <[boost/preprocessor/control/if.hpp](../headers/control/if.html)>
#include <[boost/preprocessor/facilities/empty.hpp](../headers/facilities/empty.html)>
#include <[boost/preprocessor/facilities/identity.hpp](../headers/facilities/identity.html)>
#define MACRO(n)[BOOST\_PP\_IF](if.html)(n,[BOOST\_PP\_IDENTITY](identity.html)(x),[BOOST\_PP\_EMPTY](empty.html))()
MACRO(0) // expands to nothing
MACRO(1) // expands to x
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)