From 65f34504e9b7b270843dc142a20bcbf7cdd65c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Fri, 18 Feb 2022 14:53:50 +0100 Subject: [PATCH] AK: Add FixedArray::is_empty() This also exists on Vector, and although it's less needed here, it's perfectly reasonable to have. --- AK/FixedArray.h | 1 + 1 file changed, 1 insertion(+) diff --git a/AK/FixedArray.h b/AK/FixedArray.h index 92593e5ffa..7803d05028 100644 --- a/AK/FixedArray.h +++ b/AK/FixedArray.h @@ -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; }