/////////////////////////////////////////////////////////////////////////////// // as_sequence.hpp // // Copyright 2008 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_XPRESSIVE_DETAIL_STATIC_TRANSFORMS_AS_SEQUENCE_HPP_EAN_04_01_2007 #define BOOST_XPRESSIVE_DETAIL_STATIC_TRANSFORMS_AS_SEQUENCE_HPP_EAN_04_01_2007 // MS compatible compilers support #pragma once #if defined(_MSC_VER) # pragma once #endif #include #include #include #include namespace boost { namespace xpressive { namespace grammar_detail { template struct in_sequence : proto::transform > { template struct impl : proto::transform_impl { typedef detail::static_xpression< typename Grammar::template impl::result_type , State > result_type; result_type operator ()( typename impl::expr_param expr , typename impl::state_param state , typename impl::data_param data ) const { return result_type( typename Grammar::template impl()(expr, state, data) , state ); } }; }; }}} #endif