AK: Mark HashTable::size_in_bytes() as constexpr

This commit is contained in:
Hendiadyoin1 2021-08-15 22:20:37 +02:00 committed by Brian Gianforcaro
parent 1aa527f5b6
commit 93cf01ad7d
Notes: sideshowbarker 2024-07-18 04:20:34 +09:00

View file

@ -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;