mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +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
|
@ -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…
Reference in a new issue