c++boost.gif (8819 bytes)

#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_IDENTITY(X)()

expands to:

  X

NOTE: If BOOST_PP_IDENTITY() is not invoked, the expansion will not be usable.


#define BOOST_PREPROCESSOR_IDENTITY(X)

Obsolete. Use BOOST_PP_IDENTITY().


(C) 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.

Generated: