AK: Add missing const qualifier to HashCompatible HashMap::contains()

This commit is contained in:
Linus Groh 2023-03-03 09:27:50 +00:00
parent 11023a3c53
commit bfdbb4b6ed
Notes: sideshowbarker 2024-07-16 23:34:49 +09:00

View file

@ -190,7 +190,7 @@ public:
}
template<Concepts::HashCompatible<K> Key>
requires(IsSame<KeyTraits, Traits<K>>) [[nodiscard]] bool contains(Key const& value)
requires(IsSame<KeyTraits, Traits<K>>) [[nodiscard]] bool contains(Key const& value) const
{
return find(value) != end();
}