mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Reserve-and-use functionality in Vector.
This commit is contained in:
parent
c58f1b09d1
commit
702f235c1b
@ -176,6 +176,12 @@ public:
|
||||
Realloc();
|
||||
}
|
||||
|
||||
void reserve_and_use( size_t sz )
|
||||
{
|
||||
reserve( sz );
|
||||
m_size = sz;
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
m_size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user