// Copyright Daniel James 2005. Use, modification, and distribution are // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(BOOST_UNORDERED_TEST_HELPERS_EQUIVALENT_HEADER) #define BOOST_UNORDERED_TEST_HELPERS_EQUIVALENT_HEADER #include #include namespace test { template bool equivalent_impl(std::equal_to, std::equal_to, int) { return true; } template bool equivalent_impl(boost::hash, boost::hash, int) { return true; } template bool equivalent_impl(T const& x, T const& y, float) { return x == y; } template bool equivalent(T const& x, T const& y) { return equivalent_impl(x, y, 0); } template bool equivalent(std::pair const& x, std::pair const& y) { return equivalent(x.first, y.first) && equivalent(x.second, y.second); } } #endif