Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2017-10-20 00:25:49 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2017-10-20 00:25:49 +0300
commit82476a310cf88ff659d09c63f076afb8f65073f2 (patch)
treed9eb8ab16847a572e91c7cf5873637745b9a3c6a /server/TracyVector.hpp
parentcf94b1d2e8ea40cce00b521cd09fcbebbcc5ded3 (diff)
Implement Vector::clear().
Diffstat (limited to 'server/TracyVector.hpp')
-rw-r--r--server/TracyVector.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp
index 30a3e99a..7a8745be 100644
--- a/server/TracyVector.hpp
+++ b/server/TracyVector.hpp
@@ -126,6 +126,11 @@ public:
Realloc();
}
+ void clear()
+ {
+ m_size = 0;
+ }
+
private:
void AllocMore()
{