Create a memory pool that adopts the allocations of original.

Synopsis

Declared in <bslstl_simplepool.h>

SimplePool(bslmf::MovableRef<SimplePool> original);

Description

Create a memory pool, adopting all outstanding memory allocations associated with the specified original pool, that returns blocks of contiguous memory of the sizeof the paramterized VALUE using the allocator associated with original. The chunk size is set to that of original and continues to double in size up to an implementation defined maximum number of blocks per chunk. Note that original is left in a valid but unspecified state.

Parameters

Name

Description

original

pool that is moved from

Created with MrDocs