mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
AK: Mark HashTable::size_in_bytes() as constexpr
This commit is contained in:
parent
1aa527f5b6
commit
93cf01ad7d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue