/* Hash function characterization. * * Copyright 2022 Joaquin M Lopez Munoz. * Distributed under 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) * * See https://www.boost.org/libs/unordered for library home page. */ #ifndef BOOST_UNORDERED_HASH_TRAITS_HPP #define BOOST_UNORDERED_HASH_TRAITS_HPP #include #include namespace boost{ namespace unordered{ namespace detail{ template struct hash_is_avalanching_impl: boost::false_type{}; template struct hash_is_avalanching_impl::type>: boost::true_type{}; } /* namespace detail */ /* Each trait can be partially specialized by users for concrete hash functions * when actual characterization differs from default. */ /* hash_is_avalanching::value is true when the type Hash::is_avalanching * is present, false otherwise. */ template struct hash_is_avalanching: detail::hash_is_avalanching_impl::type{}; } /* namespace unordered */ } /* namespace boost */ #endif