Chris@16: /*============================================================================= Chris@16: Copyright (c) 2007 Tobias Schwinger Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: Chris@101: #ifndef BOOST_FUSION_REPETITIVE_VIEW_REPETITIVE_VIEW_HPP_INCLUDED Chris@16: #define BOOST_FUSION_REPETITIVE_VIEW_REPETITIVE_VIEW_HPP_INCLUDED Chris@16: Chris@101: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: Chris@16: namespace boost { namespace fusion Chris@16: { Chris@16: struct repetitive_view_tag; Chris@16: struct fusion_sequence_tag; Chris@16: Chris@16: template struct repetitive_view Chris@16: : sequence_base< repetitive_view > Chris@16: { Chris@16: typedef repetitive_view_tag fusion_tag; Chris@16: typedef fusion_sequence_tag tag; // this gets picked up by MPL Chris@16: typedef mpl::true_ is_view; Chris@16: Chris@16: typedef single_pass_traversal_tag category; Chris@16: Chris@16: typedef typename boost::remove_reference::type sequence_type; Chris@16: typedef typename Chris@16: mpl::if_, Sequence, sequence_type&>::type Chris@16: stored_seq_type; Chris@16: Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: repetitive_view(Sequence& in_seq) Chris@16: : seq(in_seq) {} Chris@16: Chris@16: stored_seq_type seq; Chris@16: Chris@16: private: Chris@16: // silence MSVC warning C4512: assignment operator could not be generated Chris@16: repetitive_view& operator= (repetitive_view const&); Chris@16: }; Chris@16: Chris@16: }} Chris@16: Chris@16: #endif