BAN: Add data() to Vector.

This allows you to access the underlying data in a vector
This commit is contained in:
Bananymous 2023-02-16 20:47:49 +02:00
parent 460fc3a29f
commit 7f12a7050a
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ namespace BAN
void remove(size_type);
void clear();
T* data() { return m_data; }
const T* data() const { return m_data; }
bool contains(const T&) const;
const T& operator[](size_type) const;