1 .. Metafunctions/Logical Operations//not_ |30
16 typedef |unspecified| type;
24 Returns the result of *logical not* (``!``) operation on its argument.
32 #include <boost/mpl/not.hpp>
33 #include <boost/mpl/logical.hpp>
39 +---------------+---------------------------+-----------------------------------------------+
40 | Parameter | Requirement | Description |
41 +===============+===========================+===============================================+
42 | ``F`` | Nullary |Metafunction| | Operation's argument. |
43 +---------------+---------------------------+-----------------------------------------------+
49 For arbitrary nullary |Metafunction| ``f``:
53 typedef not_<f>::type r;
63 typedef bool_< (!f::type::value) > r;
65 .. ..........................................................................
79 struct r : not_<f>::type {};
87 BOOST_MPL_ASSERT_NOT(( not_< true\_ > ));
88 BOOST_MPL_ASSERT(( not_< false\_ > ));
94 |Metafunctions|, |Logical Operations|, |and_|, |or_|
97 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
98 Distributed under the Boost Software License, Version 1.0. (See accompanying
99 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)