mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add direct data accessor to tracy::Vector.
This commit is contained in:
parent
e4c5e5c097
commit
e2cd3106ae
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user