summaryrefslogtreecommitdiff
path: root/AK/FixedArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/FixedArray.h')
-rw-r--r--AK/FixedArray.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/FixedArray.h b/AK/FixedArray.h
index ddcbc6c47a..b32ccd2e84 100644
--- a/AK/FixedArray.h
+++ b/AK/FixedArray.h
@@ -101,6 +101,9 @@ public:
ConstIterator end() const { return ConstIterator::end(*this); }
Iterator end() { return Iterator::end(*this); }
+ Span<T const> span() const { return { data(), size() }; }
+ Span<T> span() { return { data(), size() }; }
+
private:
size_t m_size { 0 };
T* m_elements { nullptr };