mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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
Reference in a new issue