equal_to_impl.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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(FUSION_EQUAL_TO_IMPL_09172005_1120)
  7. #define FUSION_EQUAL_TO_IMPL_09172005_1120
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/type_traits/is_same.hpp>
  10. #include <boost/mpl/equal_to.hpp>
  11. #include <boost/mpl/and.hpp>
  12. namespace boost { namespace fusion
  13. {
  14. struct cons_iterator_tag;
  15. namespace extension
  16. {
  17. template <typename Tag>
  18. struct equal_to_impl;
  19. template <>
  20. struct equal_to_impl<cons_iterator_tag>
  21. {
  22. template <typename I1, typename I2>
  23. struct apply
  24. : is_same<
  25. typename I1::identity
  26. , typename I2::identity
  27. >
  28. {
  29. };
  30. };
  31. }
  32. }}
  33. #endif