1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Store MemEvents directly in the vector.

This commit is contained in:
Bartosz Taudul
2018-04-03 14:17:51 +02:00
parent bc27c99a1e
commit bf99bff87d
5 changed files with 55 additions and 48 deletions
+6
View File
@@ -94,6 +94,12 @@ public:
m_ptr[m_size++] = std::move( v );
}
T& push_next()
{
if( m_size == Capacity() ) AllocMore();
return m_ptr[m_size++];
}
T* insert( T* it, const T& v )
{
assert( it >= m_ptr && it <= m_ptr + m_size );