mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
AK: Add FixedArray::is_empty()
This also exists on Vector, and although it's less needed here, it's perfectly reasonable to have.
This commit is contained in:
parent
8bf0e04c16
commit
65f34504e9
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ public:
|
|||
}
|
||||
|
||||
size_t size() const { return m_size; }
|
||||
bool is_empty() const { return m_size == 0; }
|
||||
T* data() { return m_elements; }
|
||||
T const* data() const { return m_elements; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue