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:
kleines Filmröllchen 2022-02-18 14:53:50 +01:00 committed by Ali Mohammad Pur
parent 8bf0e04c16
commit 65f34504e9
Notes: sideshowbarker 2024-07-17 18:12:01 +09:00

View file

@ -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; }