From de9f109f2a0b2b0ead7ca8ceed3c428e1e161412 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 3 Apr 2023 17:00:52 +0300 Subject: [PATCH] BAN: Add data() member function to Array --- BAN/include/BAN/Array.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BAN/include/BAN/Array.h b/BAN/include/BAN/Array.h index 95da0234..65f9c661 100644 --- a/BAN/include/BAN/Array.h +++ b/BAN/include/BAN/Array.h @@ -39,6 +39,9 @@ namespace BAN const Span span() const { return Span(m_data, size()); } constexpr size_type size() const; + + const T* data() const { return m_data; } + T* data() { return m_data; } private: T m_data[S];