mirror of https://github.com/CGAL/cgal
Update STL_Extension/include/CGAL/unordered_flat_map.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
7f4703e248
commit
f508d6fe1d
|
|
@ -45,8 +45,10 @@ namespace CGAL {
|
|||
struct Has_hash_value : std::false_type {};
|
||||
|
||||
template <typename T>
|
||||
struct Has_hash_value<T, std::void_t<decltype(hash_value(std::declval<T>()))>>
|
||||
: std::is_convertible<decltype(hash_value(std::declval<T>())), std::size_t>
|
||||
using hash_value_type = decltype(hash_value(std::declval<T>()));
|
||||
template <typename T>
|
||||
struct Has_hash_value<T, std::void_t<hash_value_type<T>>>
|
||||
: std::is_convertible<hash_value_type<T>, std::size_t>
|
||||
{};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue