File indexing completed on 2025-01-18 09:40:48
0001 #ifndef BOOST_METAPARSE_V1_CPP98_NTH_OF_HPP
0002 #define BOOST_METAPARSE_V1_CPP98_NTH_OF_HPP
0003
0004
0005
0006
0007
0008
0009 #include <boost/metaparse/v1/nth_of_c.hpp>
0010 #include <boost/metaparse/limit_sequence_size.hpp>
0011
0012 #include <boost/preprocessor/repetition/enum_params.hpp>
0013 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
0014
0015 namespace boost
0016 {
0017 namespace metaparse
0018 {
0019 namespace v1
0020 {
0021 template <
0022 class K,
0023 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
0024 BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE,
0025 class P,
0026 boost::mpl::na
0027 )
0028 >
0029 struct nth_of :
0030 nth_of_c<
0031 K::type::value,
0032 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE, P)
0033 >
0034 {};
0035 }
0036 }
0037 }
0038
0039 #endif
0040