1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef BOOST_METAPARSE_V1_UTIL_IN_RANGE_C_HPP
- #define BOOST_METAPARSE_V1_UTIL_IN_RANGE_C_HPP
- #include <boost/mpl/bool.hpp>
- namespace boost
- {
- namespace metaparse
- {
- namespace v1
- {
- namespace util
- {
- template <class T, T LowerBound, T UpperBound>
- struct in_range_c
- {
- typedef in_range_c type;
-
- template <class Item>
- struct apply :
- boost::mpl::bool_<(
- LowerBound <= Item::type::value
- && Item::type::value <= UpperBound
- )>
- {};
- };
- }
- }
- }
- }
- #endif
|