]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/util/in_range_c.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / util / in_range_c.hpp
CommitLineData
7c673cae
FG
1#ifndef BOOST_METAPARSE_V1_UTIL_IN_RANGE_C_HPP
2#define BOOST_METAPARSE_V1_UTIL_IN_RANGE_C_HPP
3
4// Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9#include <boost/mpl/bool.hpp>
10
11namespace boost
12{
13 namespace metaparse
14 {
15 namespace v1
16 {
17 namespace util
18 {
19 template <class T, T LowerBound, T UpperBound>
20 struct in_range_c
21 {
22 typedef in_range_c type;
23
24 template <class Item>
25 struct apply :
26 boost::mpl::bool_<(
27 LowerBound <= Item::type::value
28 && Item::type::value <= UpperBound
29 )>
30 {};
31 };
32 }
33 }
34 }
35}
36
37#endif
38