]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/view/iterator_range/detail/size_impl.hpp
Added error detection for cases such as a read's two mates having different names...
[rsem.git] / boost / fusion / view / iterator_range / detail / size_impl.hpp
1 /*=============================================================================
2     Copyright (c) 2011 Eric Niebler
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
8 #if !defined(BOOST_FUSION_ITERATOR_RANGE_SIZE_IMPL_HPP_INCLUDED)
9 #define BOOST_FUSION_ITERATOR_RANGE_SIZE_IMPL_HPP_INCLUDED
10
11 #include <boost/fusion/iterator/distance.hpp>
12
13 namespace boost { namespace fusion
14 {
15     struct iterator_range_tag;
16
17     namespace extension
18     {
19         template <typename Tag>
20         struct size_impl;
21
22         template <>
23         struct size_impl<iterator_range_tag>
24         {
25             template <typename Seq>
26             struct apply
27               : result_of::distance<
28                     typename Seq::begin_type,
29                     typename Seq::end_type
30                 >
31             {};
32         };
33     }
34 }}
35
36 #endif
37