util/IntrusiveHashSet: add concept checks to *Operators

This requires adding another template argument and reordering the others.
This commit is contained in:
Max Kellermann
2024-04-02 17:37:31 +02:00
committed by Max Kellermann
parent 91ca502e10
commit 6a99f20828
5 changed files with 25 additions and 19 deletions

View File

@@ -85,9 +85,9 @@ class RemoteTagCache final {
IntrusiveHashSet<
Item, 127,
IntrusiveHashSetOperators<std::hash<std::string_view>,
std::equal_to<std::string_view>,
Item::GetUri>,
IntrusiveHashSetOperators<Item, Item::GetUri,
std::hash<std::string_view>,
std::equal_to<std::string_view>>,
IntrusiveHashSetBaseHookTraits<Item>,
IntrusiveHashSetOptions{.constant_time_size = true}> map;