Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2019. The current version is 1.89.0.
| Front Page / Metafunctions / Logical Operations / not_ |
Returns the result of logical not (!) operation on its argument.
#include <boost/mpl/not.hpp> #include <boost/mpl/logical.hpp>
| Parameter | Requirement | Description |
|---|---|---|
| F | Nullary Metafunction | Operation's argument. |
For arbitrary nullary Metafunction f:
typedef not_<f>::type r;
| Return type: | |
|---|---|
| Semantics: | Equivalent to typedef bool_< (!f::type::value) > r; |
typedef not_<f> r;
| Return type: | |
|---|---|
| Semantics: | Equivalent to struct r : not_<f>::type {}; |
BOOST_MPL_ASSERT_NOT(( not_< true_ > )); BOOST_MPL_ASSERT(( not_< false_ > ));