C++ Boost

Boost.Preprocessor

Reference


Prev Next Macros Headers

#include <boost/preprocessor/logical/xor.hpp>


#define BOOST_PP_XOR(X,Y)

Expands to the logical EXCLUSIVE OR of the operands.

For example, BOOST_PP_XOR(1,2) expands to 0 (a single token).

Test


#define BOOST_PREPROCESSOR_XOR(X,Y)

Obsolete. Use BOOST_PP_XOR().


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.