###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

# #include <boost/preprocessor/identity.hpp>

## #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

- preprocessor_test.cpp

## #define BOOST_PREPROCESSOR_IDENTITY(X)

Obsolete. Use BOOST_PP_IDENTITY().

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.