]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef BOOST_METAPARSE_SEQUENCE_APPLY_HPP |
2 | #define BOOST_METAPARSE_SEQUENCE_APPLY_HPP | |
3 | ||
4 | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015. | |
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/sequence_apply.hpp> | |
10 | ||
11 | #include <boost/preprocessor/repetition/repeat_from_to.hpp> | |
12 | #include <boost/preprocessor/cat.hpp> | |
13 | ||
14 | namespace boost | |
15 | { | |
16 | namespace metaparse | |
17 | { | |
18 | #ifdef BOOST_METAPARSE_USING | |
19 | # error BOOST_METAPARSE_USING already defined | |
20 | #endif | |
21 | #define BOOST_METAPARSE_USING(z, n, unused) \ | |
22 | using BOOST_PP_CAT(v1::sequence_apply, n); | |
23 | ||
24 | BOOST_PP_REPEAT_FROM_TO( | |
25 | 1, | |
26 | BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE, | |
27 | BOOST_METAPARSE_USING, | |
28 | ~ | |
29 | ) | |
30 | ||
31 | #undef BOOST_METAPARSE_USING | |
32 | } | |
33 | } | |
34 | ||
35 | #endif | |
36 |