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

No need to check for reserved space.

This commit is contained in:
Bartosz Taudul
2018-03-15 21:32:06 +01:00
parent b7ba64a223
commit c510c9705b
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -87,6 +87,11 @@ public:
m_ptr[m_size++] = v;
}
void push_back_no_space_check( const T& v )
{
m_ptr[m_size++] = v;
}
void push_back( T&& v )
{
if( m_size == Capacity() ) AllocMore();