Back to Arangodb

bool_

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/bool.html

3.12.9.12.5 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Data Types / Numeric / bool_ |

bool_

Synopsis

template<
      bool C
    >
struct[bool\_](./bool.html){
    //_unspecified_// ...
};

typedef[bool\_](./bool.html)<true>[true\_](./bool.html);
typedef[bool\_](./bool.html)<false>[false\_](./bool.html);

Description

A boolean Integral Constant wrapper.

#include <[boost/mpl/bool.hpp](../../../../boost/mpl/bool.hpp)>

Model of

Integral Constant

Parameters

ParameterRequirementDescription
CA boolean integral constantA value to wrap.

Expression semantics

The semantics of an expression are defined only where they differ from, or are not defined in Integral Constant.

For arbitrary integral constant c:

ExpressionSemantics
bool_<c>An Integral Constant x such that x::value == c and x::value_type is identical to bool.

Example

[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<[bool\_](./bool.html)<true>::[value\_type](./value-type.html), bool > ));[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<[bool\_](./bool.html)<true>,[true\_](./bool.html)> )); }[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<[bool\_](./bool.html)<true>::type,[bool\_](./bool.html)<true> > ));[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([bool\_](./bool.html)<true>::value, ==, true );
assert([bool\_](./bool.html)<true>() == true );

See also

Data Types, Integral Constant, int_, long_, integral_c

| Prev Next | Back Along | Up Home | Full TOC |

Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |