Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:18:33

0001 
0002 #ifndef BOOST_MPL_BOOL_HPP_INCLUDED
0003 #define BOOST_MPL_BOOL_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2000-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/bool_fwd.hpp>
0018 #include <boost/mpl/integral_c_tag.hpp>
0019 #include <boost/mpl/aux_/config/static_constant.hpp>
0020 
0021 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
0022 
0023 template< bool C_ > struct bool_
0024 {
0025     BOOST_STATIC_CONSTANT(bool, value = C_);
0026     typedef integral_c_tag tag;
0027     typedef bool_ type;
0028     typedef bool value_type;
0029     BOOST_CONSTEXPR operator bool() const { return this->value; }
0030 };
0031 
0032 #if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
0033 template< bool C_ >
0034 bool const bool_<C_>::value;
0035 #endif
0036 
0037 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
0038 
0039 #endif // BOOST_MPL_BOOL_HPP_INCLUDED