Allow RW access to Vector's data.

This commit is contained in:
Bartosz Taudul 2017-12-05 21:23:39 +01:00
parent 9b0b3c99e3
commit c58f1b09d1

View File

@ -57,7 +57,8 @@ public:
bool empty() const { return m_size == 0; }
size_t size() const { return m_size; }
const T* data() { return m_ptr; };
T* data() { return m_ptr; }
const T* data() const { return m_ptr; };
T* begin() { return m_ptr; }
const T* begin() const { return m_ptr; }