epoc32/include/stdapis/boost/mpl/not.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
williamr@4
     2
#ifndef BOOST_MPL_NOT_HPP_INCLUDED
williamr@4
     3
#define BOOST_MPL_NOT_HPP_INCLUDED
williamr@4
     4
williamr@4
     5
// Copyright Aleksey Gurtovoy 2000-2004
williamr@4
     6
//
williamr@4
     7
// Distributed under the Boost Software License, Version 1.0. 
williamr@4
     8
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@4
     9
// http://www.boost.org/LICENSE_1_0.txt)
williamr@4
    10
//
williamr@4
    11
// See http://www.boost.org/libs/mpl for documentation.
williamr@4
    12
williamr@4
    13
// $Source: /cvsroot/boost/boost/boost/mpl/not.hpp,v $
williamr@4
    14
// $Date: 2004/09/02 15:40:41 $
williamr@4
    15
// $Revision: 1.3 $
williamr@4
    16
williamr@4
    17
#include <boost/mpl/bool.hpp>
williamr@4
    18
#include <boost/mpl/aux_/nttp_decl.hpp>
williamr@4
    19
#include <boost/mpl/aux_/nested_type_wknd.hpp>
williamr@4
    20
#include <boost/mpl/aux_/na_spec.hpp>
williamr@4
    21
#include <boost/mpl/aux_/lambda_support.hpp>
williamr@4
    22
williamr@4
    23
namespace boost { namespace mpl {
williamr@4
    24
williamr@4
    25
namespace aux {
williamr@4
    26
williamr@4
    27
template< BOOST_MPL_AUX_NTTP_DECL(long, C_) > // 'long' is intentional here
williamr@4
    28
struct not_impl
williamr@4
    29
    : bool_<!C_>
williamr@4
    30
{
williamr@4
    31
};
williamr@4
    32
williamr@4
    33
} // namespace aux
williamr@4
    34
williamr@4
    35
williamr@4
    36
template<
williamr@4
    37
      typename BOOST_MPL_AUX_NA_PARAM(T)
williamr@4
    38
    >
williamr@4
    39
struct not_
williamr@4
    40
    : aux::not_impl<
williamr@4
    41
          BOOST_MPL_AUX_NESTED_TYPE_WKND(T)::value
williamr@4
    42
        >
williamr@4
    43
{
williamr@4
    44
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,not_,(T))
williamr@4
    45
};
williamr@4
    46
williamr@4
    47
BOOST_MPL_AUX_NA_SPEC(1,not_)
williamr@4
    48
williamr@4
    49
}}
williamr@4
    50
williamr@4
    51
#endif // BOOST_MPL_NOT_HPP_INCLUDED