]> git.lyx.org Git - lyx.git/blob - boost/boost/mpl/bool.hpp
Boost 1.31.0
[lyx.git] / boost / boost / mpl / bool.hpp
1
2 #ifndef BOOST_MPL_BOOL_HPP_INCLUDED
3 #define BOOST_MPL_BOOL_HPP_INCLUDED
4
5 // + file: boost/mpl/bool.hpp
6 // + last modified: 12/apr/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_fwd.hpp"
22 #include "boost/mpl/aux_/config/static_constant.hpp"
23
24 namespace boost { namespace mpl {
25
26 template< bool C_ > struct bool_
27 {
28     BOOST_STATIC_CONSTANT(bool, value = C_);
29     typedef bool_ type;
30     typedef bool value_type;
31     operator bool() const { return this->value; }
32 };
33
34 #if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
35 template< bool C_ >
36 bool const bool_<C_>::value;
37 #endif
38
39 }} // namespace boost::mpl
40
41 #endif // BOOST_MPL_BOOL_HPP_INCLUDED