equal_to_impl.hpp 1009 B

12345678910111213141516171819202122232425262728293031323334
  1. /*=============================================================================
  2. Copyright (c) 2009 Hartmut Kaiser
  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_NVIEW_ITERATOR_SEP_24_2009_0329PM)
  7. #define BOOST_FUSION_NVIEW_ITERATOR_SEP_24_2009_0329PM
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/iterator/equal_to.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. struct nview_iterator_tag;
  13. namespace extension
  14. {
  15. template<typename Tag>
  16. struct equal_to_impl;
  17. template<>
  18. struct equal_to_impl<nview_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. }
  26. }}
  27. #endif