is_equality_comparable.hpp 817 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright 2017-2018 Joaquin M Lopez Munoz.
  2. * Distributed under the Boost Software License, Version 1.0.
  3. * (See accompanying file LICENSE_1_0.txt or copy at
  4. * http://www.boost.org/LICENSE_1_0.txt)
  5. *
  6. * See http://www.boost.org/libs/poly_collection for library home page.
  7. */
  8. #ifndef BOOST_POLY_COLLECTION_DETAIL_IS_EQUALITY_COMPARABLE_HPP
  9. #define BOOST_POLY_COLLECTION_DETAIL_IS_EQUALITY_COMPARABLE_HPP
  10. #if defined(_MSC_VER)
  11. #pragma once
  12. #endif
  13. #include <boost/type_traits/has_equal_to.hpp>
  14. #include <type_traits>
  15. namespace boost{
  16. namespace poly_collection{
  17. namespace detail{
  18. template<typename T>
  19. using is_equality_comparable=std::integral_constant<
  20. bool,
  21. has_equal_to<T,T,bool>::value
  22. >;
  23. } /* namespace poly_collection::detail */
  24. } /* namespace poly_collection */
  25. } /* namespace boost */
  26. #endif