Add direct data accessor to tracy::Vector.

This commit is contained in:
Bartosz Taudul 2017-09-30 16:18:06 +02:00
parent e4c5e5c097
commit e2cd3106ae

View File

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