]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/one_of.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / one_of.hpp
1 #ifndef BOOST_METAPARSE_V1_ONE_OF_HPP
2 #define BOOST_METAPARSE_V1_ONE_OF_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
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/metaparse/v1/impl/one_of.hpp>
10 #include <boost/metaparse/limit_one_of_size.hpp>
11
12 #include <boost/mpl/vector.hpp>
13
14 #include <boost/preprocessor/repetition/enum_params.hpp>
15 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
16
17 namespace boost
18 {
19 namespace metaparse
20 {
21 namespace v1
22 {
23 template <
24 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
25 BOOST_METAPARSE_LIMIT_ONE_OF_SIZE,
26 class P,
27 boost::mpl::na
28 )
29 >
30 struct one_of :
31 impl::one_of<
32 boost::mpl::vector<
33 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_ONE_OF_SIZE, P)
34 >
35 >
36 {};
37 }
38 }
39 }
40
41 #endif
42