From e2cd3106ae482a9e757ff7e781458deeb8334cfa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 30 Sep 2017 16:18:06 +0200 Subject: [PATCH] Add direct data accessor to tracy::Vector. --- server/TracyVector.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index 578f1181..c8f8b276 100755 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -53,6 +53,8 @@ public: bool empty() const { return m_size == 0; } size_t size() const { return m_size; } + const T* data() { return m_ptr; }; + T* begin() { return m_ptr; } const T* begin() const { return m_ptr; } T* end() { return m_ptr + m_size; }