| 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(BOOST_FUSION_TRANSFORM_VIEW_ITERATOR_20070127_0957) |
| 8 | #define BOOST_FUSION_TRANSFORM_VIEW_ITERATOR_20070127_0957 |
| 9 | |
| 10 | #include <boost/fusion/support/config.hpp> |
| 11 | #include <boost/fusion/iterator/equal_to.hpp> |
| 12 | |
| 13 | namespace boost { namespace fusion { |
| 14 | |
| 15 | struct transform_view_iterator_tag; |
| 16 | struct transform_view_iterator2_tag; |
| 17 | |
| 18 | namespace extension |
| 19 | { |
| 20 | template<typename Tag> |
| 21 | struct equal_to_impl; |
| 22 | |
| 23 | template<> |
| 24 | struct equal_to_impl<transform_view_iterator_tag> |
| 25 | { |
| 26 | template<typename It1, typename It2> |
| 27 | struct apply |
| 28 | : result_of::equal_to<typename It1::first_type, typename It2::first_type> |
| 29 | {}; |
| 30 | }; |
| 31 | |
| 32 | template<> |
| 33 | struct equal_to_impl<transform_view_iterator2_tag> |
| 34 | { |
| 35 | template<typename It1, typename It2> |
| 36 | struct apply |
| 37 | : result_of::equal_to<typename It1::first1_type, typename It2::first1_type> |
| 38 | {}; |
| 39 | }; |
| 40 | } |
| 41 | }} |
| 42 | |
| 43 | #endif |
| 44 |