1 #ifndef BOOST_METAPARSE_V1_LOOK_AHEAD_HPP
2 #define BOOST_METAPARSE_V1_LOOK_AHEAD_HPP
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
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/is_error.hpp>
10 #include <boost/metaparse/v1/accept.hpp>
11 #include <boost/metaparse/v1/get_result.hpp>
13 #include <boost/mpl/eval_if.hpp>
25 template <class S, class Pos>
28 typename get_result<typename P::template apply<S, Pos> >::type,
34 typedef look_ahead type;
36 template <class S, class Pos>
39 typename is_error<typename P::template apply<S, Pos> >::type,
40 typename P::template apply<S, Pos>,