1 #ifndef BOOST_METAPARSE_V1_IMPL_APPLY_PARSER_HPP
2 #define BOOST_METAPARSE_V1_IMPL_APPLY_PARSER_HPP
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
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)
9 #include <boost/metaparse/v1/unless_error.hpp>
10 #include <boost/metaparse/v1/get_result.hpp>
11 #include <boost/metaparse/v1/get_remaining.hpp>
12 #include <boost/metaparse/v1/get_position.hpp>
13 #include <boost/metaparse/v1/transform.hpp>
15 #include <boost/mpl/push_back.hpp>
28 template <class ListToAppend>
32 struct apply : boost::mpl::push_back<ListToAppend, Item> {};
35 template <class Accum, class S, class Pos, class Parser>
36 struct apply_unchecked :
37 transform<Parser,do_append<typename Accum::type> >::template apply<
44 template <class State, class Parser>