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

Back-and-pop operation on Vector.

This commit is contained in:
Bartosz Taudul
2017-11-19 19:17:54 +01:00
parent a4e909a740
commit 94bd563753
2 changed files with 8 additions and 2 deletions
+7
View File
@@ -153,6 +153,13 @@ public:
m_size--;
}
T& back_and_pop()
{
assert( m_size > 0 );
m_size--;
return m_ptr[m_size];
}
void reserve( size_t cap )
{
if( cap == 0 || cap <= Capacity() ) return;