File indexing completed on 2025-01-18 09:53:51
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_XPRESSIVE_DETAIL_STATIC_TRANSFORMS_AS_SEQUENCE_HPP_EAN_04_01_2007
0009 #define BOOST_XPRESSIVE_DETAIL_STATIC_TRANSFORMS_AS_SEQUENCE_HPP_EAN_04_01_2007
0010
0011
0012 #if defined(_MSC_VER)
0013 # pragma once
0014 #endif
0015
0016 #include <boost/mpl/assert.hpp>
0017 #include <boost/type_traits/is_same.hpp>
0018 #include <boost/xpressive/detail/detail_fwd.hpp>
0019 #include <boost/xpressive/detail/static/static.hpp>
0020
0021 namespace boost { namespace xpressive { namespace grammar_detail
0022 {
0023 template<typename Grammar, typename Callable = proto::callable>
0024 struct in_sequence : proto::transform<in_sequence<Grammar, Callable> >
0025 {
0026 template<typename Expr, typename State, typename Data>
0027 struct impl : proto::transform_impl<Expr, State, Data>
0028 {
0029 typedef
0030 detail::static_xpression<
0031 typename Grammar::template impl<Expr, State, Data>::result_type
0032 , State
0033 >
0034 result_type;
0035
0036 result_type operator ()(
0037 typename impl::expr_param expr
0038 , typename impl::state_param state
0039 , typename impl::data_param data
0040 ) const
0041 {
0042 return result_type(
0043 typename Grammar::template impl<Expr, State, Data>()(expr, state, data)
0044 , state
0045 );
0046 }
0047 };
0048 };
0049
0050 }}}
0051
0052 #endif