]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/iterator/detail/segmented_equal_to.hpp
Added error detection for cases such as a read's two mates having different names...
[rsem.git] / boost / fusion / iterator / detail / segmented_equal_to.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 #if !defined(BOOST_FUSION_SEGMENTED_ITERATOR_EQUAL_TO_HPP_INCLUDED)
8 #define BOOST_FUSION_SEGMENTED_ITERATOR_EQUAL_TO_HPP_INCLUDED
9
10 #include <boost/mpl/and.hpp>
11 #include <boost/mpl/bool.hpp>
12 #include <boost/fusion/iterator/equal_to.hpp>
13
14 namespace boost { namespace fusion
15 {
16     struct nil_;
17
18     namespace detail
19     {
20         template <typename Stack1, typename Stack2>
21         struct segmented_equal_to
22           : mpl::and_<
23                 segmented_equal_to<
24                     typename Stack1::cdr_type,
25                     typename Stack2::cdr_type
26                 >
27               , result_of::equal_to<
28                     typename Stack1::car_type::begin_type,
29                     typename Stack2::car_type::begin_type
30                 >
31             >
32         {};
33
34         template <>
35         struct segmented_equal_to<fusion::nil_, fusion::nil_>
36           : mpl::true_
37         {};
38     }
39 }}
40
41 #endif