util/IntrusiveHashSet: fix find_if() concept
This commit is contained in:

committed by
Max Kellermann

parent
52af03a5a6
commit
868958e159
@@ -280,7 +280,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
[[nodiscard]] [[gnu::pure]]
|
[[nodiscard]] [[gnu::pure]]
|
||||||
constexpr bucket_iterator find_if(const auto &key,
|
constexpr bucket_iterator find_if(const auto &key,
|
||||||
Disposer<value_type> auto pred) noexcept {
|
Predicate<const_reference> auto pred) noexcept {
|
||||||
auto &bucket = GetBucket(key);
|
auto &bucket = GetBucket(key);
|
||||||
for (auto &i : bucket)
|
for (auto &i : bucket)
|
||||||
if (equal(key, i) && pred(i))
|
if (equal(key, i) && pred(i))
|
||||||
|
Reference in New Issue
Block a user