[Home]not_

Synopsis

template< 
      typename F
    >
struct not_
{
    typedef unspecified type;
};

Description

Returns the result of logical not (!) operation on its argument.

Definition

#include "boost/mpl/not.hpp"

Parameters

 Parameter  Requirement  Description  
FA model of nullary Metafunction

Expression semantics

 Expression  Expression type  Precondition  Semantics  Postcondition 
typedef not_<f>::type c;A model of bool Integral ConstantEquivalent to typedef bool_<(!f::type::value)> c;

Example

BOOST_STATIC_ASSERT(not_<true_>::type::value == false);
BOOST_STATIC_ASSERT(not_<false_>::type::value == true);

See also

Metafunctions, and_, or_


Table of Contents
Last edited March 10, 2003 1:19 am