Constructors

Synopses

Declared in <support/allocators/pool.h>

Construct a new Pool Resource object, defaults to 2ˆ18=262144 chunk size.

Deleted copy constructor; copying a PoolResource is not supported.

PoolResource(PoolResource const& other) = delete;

Deleted move constructor; moving a PoolResource is not supported.

PoolResource(PoolResource&& other) = delete;

Construct a new PoolResource object which allocates the first chunk. chunk_size_bytes will be rounded up to next multiple of ELEM_ALIGN_BYTES.

explicit
PoolResource(std::size_t chunk_size_bytes);

Parameters

Name

Description

other

The resource that would have been copied.

chunk_size_bytes

Requested size in bytes of each memory chunk, rounded up to the next multiple of ELEM_ALIGN_BYTES.

Created with MrDocs