File indexing completed on 2025-01-18 09:40:49
0001 #ifndef BOOST_METAPARSE_V1_ACCEPT_TAG_HPP
0002 #define BOOST_METAPARSE_V1_ACCEPT_TAG_HPP
0003
0004
0005
0006
0007
0008
0009 #include <boost/metaparse/v1/fwd/get_remaining.hpp>
0010 #include <boost/metaparse/v1/fwd/get_position.hpp>
0011 #include <boost/metaparse/v1/fwd/get_result.hpp>
0012
0013
0014 namespace boost
0015 {
0016 namespace metaparse
0017 {
0018 namespace v1
0019 {
0020 struct accept_tag { typedef accept_tag type; };
0021
0022 template <>
0023 struct get_position_impl<accept_tag>
0024 {
0025 template <class A>
0026 struct apply : A::source_position {};
0027 };
0028
0029 template <>
0030 struct get_remaining_impl<accept_tag>
0031 {
0032 template <class A>
0033 struct apply : A::remaining {};
0034 };
0035
0036 template <>
0037 struct get_result_impl<accept_tag>
0038 {
0039 template <class A>
0040 struct apply { typedef typename A::result type; };
0041 };
0042 }
0043 }
0044 }
0045
0046 #endif
0047