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
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
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