![]() |
Home | Libraries | People | FAQ | More |
template<class T> struct negation : public integral_constant<bool, !bool(T::value)> { };
Inherits: Inherits from integral_constant<bool,
!bool(T::value)>.
Header: #include
<boost/type_traits/negation.hpp>
Compiler Compatibility: All current compilers are supported by this trait.
Examples:
negation<true_type>inherits fromfalse_type.
negation<false_type>inherits fromtrue_type.
negation<integral_constant<int, 4> >::typeis the typefalse_type.
negation<integral_constant<int, 0> >::valueis an integral constant expression that evaluates to true.
negation<T>::value_typeis the typebool.