Back to Arangodb

BOOST_PP_BOOL

3rdParty/boost/1.78.0/libs/preprocessor/doc/ref/bool.html

3.12.9.1989 B
Original Source

The BOOST_PP_BOOL macro performs a boolean conversion on its operand.

Usage

BOOST_PP_BOOL (x)

Arguments

x The value to be converted. Valid values range from 0 to BOOST_PP_LIMIT_MAG.

Remarks

If x is 0, this macro expands to 0. Otherwise it expands to 1.

See Also

Requirements

Header: <boost/preprocessor/logical/bool.hpp>

Sample Code

#include <[boost/preprocessor/logical/bool.hpp](../headers/logical/bool.html)>[BOOST\_PP\_BOOL](bool.html)(6) // expands to 1[BOOST\_PP\_BOOL](bool.html)(0) // expands to 0

Copyright Housemarque Oy 2002 Copyright Paul Mensonides 2002

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)