C++ Boost

Boost.Preprocessor

Header <boost/preprocessor/identity.hpp>


Prev Next Macros Headers

#define BOOST_PP_IDENTITY(X)

Expands to X once invoked.

Designed to be used with BOOST_PP_IF(), when one of the clauses need to be invoked.

For example,

BOOST_PP_IF(1,BOOST_PP_IDENTITY(X),BOOST_PP_EMPTY)()

expands to:

X

Test


Prev Next Macros Headers

Revised

© Copyright Housemarque Oy 2002

Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.