1 /*=============================================================================
2 Copyright (c) 2011 Eric Niebler
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
10 #include <boost/mpl/and.hpp>
11 #include <boost/mpl/bool.hpp>
12 #include <boost/fusion/iterator/equal_to.hpp>
14 namespace boost { namespace fusion
20 template <typename Stack1, typename Stack2>
21 struct segmented_equal_to
24 typename Stack1::cdr_type,
25 typename Stack2::cdr_type
27 , result_of::equal_to<
28 typename Stack1::car_type::begin_type,
29 typename Stack2::car_type::begin_type
35 struct segmented_equal_to<fusion::nil_, fusion::nil_>