###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

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

## #define BOOST_PP_IF(C,T,E)

Expands to `T` if `C != 0` and `E` if `C == 0`.

BOOST_PP_IF() enables convenient generation of lists using BOOST_PP_REPEAT().

### Test

- preprocessor_test.cpp

## #define BOOST_PREPROCESSOR_IF(C,T,E)

Obsolete. Use BOOST_PP_IF().

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.