not_
template<
typename F
>
struct not_
{
typedef unspecified type;
};
Returns the result of logical not (!) operation on its argument.
#include "boost/mpl/not.hpp"
| Parameter | Requirement | Description |
|---|---|---|
F | A model of nullary Metafunction |
| Expression | Expression type | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
not_<f> | A model of bool Integral Constant | Equivalent to bool_<(!f::type::value)> |
BOOST_STATIC_ASSERT(not_<true_>::value == false); BOOST_STATIC_ASSERT(not_<false_>::value == true);