1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_BEGIN_IMPL_05062005_0903)
8 #define FUSION_BEGIN_IMPL_05062005_0903
10 namespace boost { namespace fusion
12 struct filter_view_tag;
14 template <typename Category, typename First, typename Last, typename Pred>
15 struct filter_iterator;
19 template <typename Tag>
23 struct begin_impl<filter_view_tag>
25 template <typename Sequence>
28 typedef typename Sequence::first_type first_type;
29 typedef typename Sequence::last_type last_type;
30 typedef typename Sequence::pred_type pred_type;
31 typedef typename Sequence::category category;
32 typedef filter_iterator<category, first_type, last_type, pred_type> type;
34 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
38 return type(s.first());