]> git.lyx.org Git - lyx.git/blob - boost/boost/mpl/not.hpp
Boost 1.31.0
[lyx.git] / boost / boost / mpl / not.hpp
1
2 #ifndef BOOST_MPL_NOT_HPP_INCLUDED
3 #define BOOST_MPL_NOT_HPP_INCLUDED
4
5 // + file: boost/mpl/not.hpp
6 // + last modified: 25/feb/03
7
8 // Copyright (c) 2000-03
9 // Aleksey Gurtovoy
10 //
11 // Permission to use, copy, modify, distribute and sell this software
12 // and its documentation for any purpose is hereby granted without fee, 
13 // provided that the above copyright notice appears in all copies and 
14 // that both the copyright notice and this permission notice appear in 
15 // supporting documentation. No representations are made about the 
16 // suitability of this software for any purpose. It is provided "as is" 
17 // without express or implied warranty.
18 //
19 // See http://www.boost.org/libs/mpl for documentation.
20
21 #include "boost/mpl/bool.hpp"
22 #include "boost/mpl/aux_/nested_type_wknd.hpp"
23 #include "boost/mpl/aux_/void_spec.hpp"
24 #include "boost/mpl/aux_/lambda_support.hpp"
25
26 namespace boost {
27 namespace mpl {
28
29 namespace aux {
30
31 template< long C_ > // 'long' is intentional here
32 struct not_impl
33     : bool_<!C_>
34 {
35 };
36
37 } // namespace aux
38
39
40 template<
41       typename BOOST_MPL_AUX_VOID_SPEC_PARAM(T)
42     >
43 struct not_
44     : aux::not_impl<
45           BOOST_MPL_AUX_NESTED_TYPE_WKND(T)::value
46         >
47 {
48     BOOST_MPL_AUX_LAMBDA_SUPPORT(1,not_,(T))
49 };
50
51 BOOST_MPL_AUX_VOID_SPEC(1,not_)
52
53 } // namespace mpl
54 } // namespace boost
55
56 #endif // BOOST_MPL_NOT_HPP_INCLUDED