diff options
Diffstat (limited to 'AK/HashMap.h')
-rw-r--r-- | AK/HashMap.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/AK/HashMap.h b/AK/HashMap.h index 979740ac49..ec8d946472 100644 --- a/AK/HashMap.h +++ b/AK/HashMap.h @@ -154,8 +154,7 @@ public: } template<Concepts::HashCompatible<K> Key> - requires(IsSame<KeyTraits, Traits<K>>) Optional<typename ValueTraits::PeekType> get(Key const& key) - const + requires(IsSame<KeyTraits, Traits<K>>) Optional<typename ValueTraits::ConstPeekType> get(Key const& key) const requires(!IsPointer<typename ValueTraits::PeekType>) { auto it = find(key); @@ -165,8 +164,7 @@ public: } template<Concepts::HashCompatible<K> Key> - requires(IsSame<KeyTraits, Traits<K>>) Optional<typename ValueTraits::ConstPeekType> get(Key const& key) - const + requires(IsSame<KeyTraits, Traits<K>>) Optional<typename ValueTraits::ConstPeekType> get(Key const& key) const requires(IsPointer<typename ValueTraits::PeekType>) { auto it = find(key); |