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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user