]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/metaparse/v1/cpp98/nth_of.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / metaparse / v1 / cpp98 / nth_of.hpp
1 #ifndef BOOST_METAPARSE_V1_CPP98_NTH_OF_HPP
2 #define BOOST_METAPARSE_V1_CPP98_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 #include <boost/metaparse/limit_sequence_size.hpp>
11
12 #include <boost/preprocessor/repetition/enum_params.hpp>
13 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
14
15 namespace boost
16 {
17 namespace metaparse
18 {
19 namespace v1
20 {
21 template <
22 class K,
23 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
24 BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE,
25 class P,
26 boost::mpl::na
27 )
28 >
29 struct nth_of :
30 nth_of_c<
31 K::type::value,
32 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE, P)
33 >
34 {};
35 }
36 }
37 }
38
39 #endif
40