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