Reserve memory for at least the specified numBlocks.

Synopsis

Declared in <bslstl_simplepool.h>

void
reserve(size_type numBlocks);

Description

Dynamically allocate a new chunk containing the specified numBlocks number of blocks, and add the chunk to the free memory list of this pool. The additional memory is added irrespective of the amount of free memory when called. The behavior is undefined unless 0 < numBlocks.

Parameters

Name

Description

numBlocks

number of blocks to allocate and add to the free list

Created with MrDocs