![]() |
Home | Libraries | People | FAQ | More |
Guarantee a minimum capacity.
void reserve( std::size_t n);
This function adjusts the internal storage (if necessary) to guarantee
space for at least n bytes.
Buffer sequences previously obtained using data or prepare become invalid.
|
Name |
Description |
|---|---|
|
|
The minimum number of byte for the new capacity. If this value is greater than the maximum size, then the maximum size will be adjusted upwards to this value. |
Basic guarantee.
|
Type |
Thrown On |
|---|---|
|
|
if n is larger than the maximum allocation size of the allocator. |