From 67f23011509bfff835c22d5636425f8aded85763 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Thu, 8 Oct 2020 10:48:56 -0700 Subject: AK: Make StringView hashable --- AK/StringView.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'AK') diff --git a/AK/StringView.h b/AK/StringView.h index 894b486546..6a0293561f 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -187,6 +187,11 @@ private: size_t m_length { 0 }; }; +template<> +struct Traits : public GenericTraits { + static unsigned hash(const StringView& s) { return s.hash(); } +}; + } using AK::StringView; -- cgit v1.2.3