mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 10:36:24 +00:00
AK: Make StringView hashable
This commit is contained in:
parent
6e05685ad4
commit
67f2301150
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue