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