From 93cf01ad7db21ec5f48a46e206356ea791158fca Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sun, 15 Aug 2021 22:20:37 +0200 Subject: AK: Mark HashTable::size_in_bytes() as constexpr --- AK/HashTable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AK') diff --git a/AK/HashTable.h b/AK/HashTable.h index beebda4a76..b075853b6e 100644 --- a/AK/HashTable.h +++ b/AK/HashTable.h @@ -378,7 +378,7 @@ private: } } - [[nodiscard]] static size_t size_in_bytes(size_t capacity) + [[nodiscard]] static constexpr size_t size_in_bytes(size_t capacity) { if constexpr (IsOrdered) { return sizeof(BucketType) * capacity; -- cgit v1.2.3