mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:27:35 +00:00
AK: Add missing const qualifier to HashCompatible HashMap::contains()
This commit is contained in:
parent
11023a3c53
commit
bfdbb4b6ed
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
template<Concepts::HashCompatible<K> Key>
|
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();
|
return find(value) != end();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue