]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/view/iterator_range/detail/begin_impl.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / view / iterator_range / detail / begin_impl.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2011 Joel de Guzman
3
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_1226)
8 #define FUSION_BEGIN_IMPL_05062005_1226
9
10 namespace boost { namespace fusion
11 {
12     struct iterator_range_tag;
13
14     namespace extension
15     {
16         template <typename Tag>
17         struct begin_impl;
18
19         template <>
20         struct begin_impl<iterator_range_tag>
21         {
22             template <typename Sequence>
23             struct apply
24             {
25                 typedef typename Sequence::begin_type type;
26
27                 static type
28                 call(Sequence& s)
29                 {
30                     return s.first;
31                 }
32             };
33         };
34     }
35 }}
36
37 #endif
38
39