]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/first_of.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / first_of.hpp
1 #ifndef BOOST_METAPARSE_V1_FIRST_OF_HPP
2 #define BOOST_METAPARSE_V1_FIRST_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/nth_of.hpp>
10
11 namespace boost
12 {
13 namespace metaparse
14 {
15 namespace v1
16 {
17 template <
18 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
19 BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE,
20 class P,
21 boost::mpl::na
22 )
23 >
24 struct first_of :
25 nth_of_c<
26 0,
27 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE, P)
28 >
29 {};
30 }
31 }
32 }
33
34 #endif
35