AK: Make StringView hashable

This commit is contained in:
Matthew Olsson 2020-10-08 10:48:56 -07:00 committed by Andreas Kling
parent 6e05685ad4
commit 67f2301150

View file

@ -187,6 +187,11 @@ private:
size_t m_length { 0 };
};
template<>
struct Traits<StringView> : public GenericTraits<String> {
static unsigned hash(const StringView& s) { return s.hash(); }
};
}
using AK::StringView;