File indexing completed on 2025-01-18 09:40:49
0001 #ifndef BOOST_METAPARSE_V1_UTIL_IN_RANGE_C_HPP
0002 #define BOOST_METAPARSE_V1_UTIL_IN_RANGE_C_HPP
0003
0004
0005
0006
0007
0008
0009 #include <boost/mpl/bool.hpp>
0010
0011 namespace boost
0012 {
0013 namespace metaparse
0014 {
0015 namespace v1
0016 {
0017 namespace util
0018 {
0019 template <class T, T LowerBound, T UpperBound>
0020 struct in_range_c
0021 {
0022 typedef in_range_c type;
0023
0024 template <class Item>
0025 struct apply :
0026 boost::mpl::bool_<(
0027 LowerBound <= Item::type::value
0028 && Item::type::value <= UpperBound
0029 )>
0030 {};
0031 };
0032 }
0033 }
0034 }
0035 }
0036
0037 #endif
0038