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_ > ));