equal_to_impl.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(BOOST_FUSION_TRANSFORM_VIEW_ITERATOR_20070127_0957)
  7. #define BOOST_FUSION_TRANSFORM_VIEW_ITERATOR_20070127_0957
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/iterator/equal_to.hpp>
  10. namespace boost { namespace fusion {
  11. struct transform_view_iterator_tag;
  12. struct transform_view_iterator2_tag;
  13. namespace extension
  14. {
  15. template<typename Tag>
  16. struct equal_to_impl;
  17. template<>
  18. struct equal_to_impl<transform_view_iterator_tag>
  19. {
  20. template<typename It1, typename It2>
  21. struct apply
  22. : result_of::equal_to<typename It1::first_type, typename It2::first_type>
  23. {};
  24. };
  25. template<>
  26. struct equal_to_impl<transform_view_iterator2_tag>
  27. {
  28. template<typename It1, typename It2>
  29. struct apply
  30. : result_of::equal_to<typename It1::first1_type, typename It2::first1_type>
  31. {};
  32. };
  33. }
  34. }}
  35. #endif