Reserve-and-use functionality in Vector.

This commit is contained in:
Bartosz Taudul 2017-12-05 21:23:51 +01:00
parent c58f1b09d1
commit 702f235c1b

View File

@ -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;