Back to Arangodb

not_

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/not.html

3.12.9.12.2 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Metafunctions / Logical Operations / not_ |

not_

Synopsis

template<
      typename F
    >
struct[not\_](./not.html){
    typedef_unspecified_type;
};

Description

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

#include <[boost/mpl/not.hpp](../../../../boost/mpl/not.hpp)>
#include <[boost/mpl/logical.hpp](../../../../boost/mpl/logical.hpp)>

Parameters

ParameterRequirementDescription
FNullary MetafunctionOperation's argument.

Expression semantics

For arbitrary nullary Metafunction f:

typedef[not\_](./not.html)<f>::type r;

| Return type: |

Integral Constant.

| | Semantics: |

Equivalent to

typedef[bool\_](./bool.html)< (!f::type::value) > r;

|

typedef[not\_](./not.html)<f> r;

| Return type: |

Integral Constant.

| | Semantics: |

Equivalent to

struct r :[not\_](./not.html)<f>::type {};

|

Example

[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([not\_](./not.html)<[true\_](./bool.html)> ));[BOOST\_MPL\_ASSERT](./assert.html)(([not\_](./not.html)<[false\_](./bool.html)> ));

See also

Metafunctions, Logical Operations, and_, or_

| Prev Next | Back Along | Up Home | Full TOC |

Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |