AK: Make StringView::hash() constexpr

This required moving string_hash() to its own header so that everyone
can see it.
This commit is contained in:
Andreas Kling
2021-05-14 15:21:50 +02:00
parent 9c38475608
commit 3e603b2f32
5 changed files with 36 additions and 25 deletions

View File

@@ -6,9 +6,9 @@
#include <AK/Debug.h>
#include <AK/FlyString.h>
#include <AK/HashTable.h>
#include <AK/Memory.h>
#include <AK/StdLibExtras.h>
#include <AK/StringHash.h>
#include <AK/StringImpl.h>
#include <AK/kmalloc.h>