2003-03-12 13:29:12 +00:00
<!doctype html public "-//ietf//dtd html//en">
< html >< head >< title > boost::mpl::not_</ title >
< link rel = "stylesheet" href = "../mpl_wiki.css" >
</ head >< body bgcolor = "white" >
< h1 >< a href = "../Table_of_Contents.html" >< img src = "../mpl_logo.jpg" alt = "[Home]" border = 0 align = "right" ></ a > not_</ h1 >< h3 > Synopsis</ h3 >
< p >
< pre >
template<
typename F
>
struct not_
{
typedef < em > unspecified</ em > type;
};
</ pre >
< p >
< h3 > Description</ h3 >
< p >
Returns the result of < em > logical not</ em > (< code > !</ code > ) operation on its argument.
< p >
< h3 > Definition</ h3 >
< p >
< pre >
#include "< a href = "../../../../../boost/mpl/not.hpp" > boost/mpl/not.hpp</ a > "
</ pre >
< p >
< h3 > Parameters</ h3 >
< table border = "1" >
< tr >< th > Parameter </ th >< th > Requirement </ th >< th > Description </ th ></ tr >
< tr >< td >< code > F</ code ></ td >< td > A model of nullary < a href = "../Metafunction.html" > Metafunction</ a ></ td >< td ></ td ></ tr >
</ table >
< p >
< h3 > Expression semantics</ h3 >
< p >
< table border = "1" >
< tr >< th > Expression </ th >< th > Expression type </ th >< th > Precondition </ th >< th > Semantics </ th >< th > Postcondition </ th ></ tr >
2003-11-12 07:55:12 +00:00
< tr >< td >< code > not_< f> </ code ></ td >< td > A model of < code > bool</ code > < a href = "../Integral_Constant.html" > Integral Constant</ a ></ td >< td ></ td >< td > Equivalent to < code > bool_< (!f::type::value)> </ code ></ td >< td ></ td ></ tr >
2003-03-12 13:29:12 +00:00
</ table >
< p >
< h3 > Example</ h3 >
< p >
< pre >
2003-11-12 07:55:12 +00:00
BOOST_STATIC_ASSERT(not_< true_> ::value == false);
BOOST_STATIC_ASSERT(not_< false_> ::value == true);
2003-03-12 13:29:12 +00:00
</ pre >
< p >
< h3 > See also</ h3 >
< p >
< a href = "../Metafunctions.html" > Metafunctions</ a > , < code >< a href = "../Reference/and.html" > and_</ a ></ code > , < code >< a href = "../Reference/or.html" > or_</ a ></ code >
< p >< hr >
2003-11-12 07:55:12 +00:00
< a href = "../Table_of_Contents.html" > Table of Contents</ a >< br > Last edited September 6, 2003 3:09 am</ body ></ html >