mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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
Notes:
sideshowbarker
2024-07-17 18:12:01 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/65f34504e9 Pull-request: https://github.com/SerenityOS/serenity/pull/12733
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…
Reference in a new issue