mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 10:36:24 +00:00
AK: Mark HashTable::size_in_bytes() as constexpr
This commit is contained in:
parent
1aa527f5b6
commit
93cf01ad7d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue