util/IntrusiveHashSet: add hash_function(), key_eq()
This commit is contained in:
parent
c71958af4b
commit
72c047f4f0
@ -143,9 +143,22 @@ public:
|
|||||||
using const_pointer = const T *;
|
using const_pointer = const T *;
|
||||||
using size_type = std::size_t;
|
using size_type = std::size_t;
|
||||||
|
|
||||||
|
using hasher = Hash;
|
||||||
|
using key_equal = Equal;
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
IntrusiveHashSet() noexcept = default;
|
IntrusiveHashSet() noexcept = default;
|
||||||
|
|
||||||
|
[[nodiscard]]
|
||||||
|
constexpr const hasher &hash_function() const noexcept {
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
[[nodiscard]]
|
||||||
|
constexpr const key_equal key_eq() const noexcept {
|
||||||
|
return equal;
|
||||||
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
constexpr bool empty() noexcept {
|
constexpr bool empty() noexcept {
|
||||||
if constexpr (constant_time_size)
|
if constexpr (constant_time_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user