BAN: Add data() member function to Array

This commit is contained in:
Bananymous 2023-04-03 17:00:52 +03:00
parent b87dae7e7c
commit daa35aaf7d
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ namespace BAN
const Span<T> span() const { return Span(m_data, size()); } const Span<T> span() const { return Span(m_data, size()); }
constexpr size_type size() const; constexpr size_type size() const;
const T* data() const { return m_data; }
T* data() { return m_data; }
private: private:
T m_data[S]; T m_data[S];