3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/bool.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Data Types / Numeric / bool_ |
template<
bool C
>
struct[bool\_](./bool.html){
//_unspecified_// ...
};
typedef[bool\_](./bool.html)<true>[true\_](./bool.html);
typedef[bool\_](./bool.html)<false>[false\_](./bool.html);
A boolean Integral Constant wrapper.
#include <[boost/mpl/bool.hpp](../../../../boost/mpl/bool.hpp)>
| Parameter | Requirement | Description |
|---|---|---|
| C | A boolean integral constant | A value to wrap. |
The semantics of an expression are defined only where they differ from, or are not defined in Integral Constant.
For arbitrary integral constant c:
| Expression | Semantics |
|---|---|
| bool_<c> | An Integral Constant x such that x::value == c and x::value_type is identical to bool. |
[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 );
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) |