Constructors

Synopses

Declared in <support/allocators/pool.h>

Copy constructor; shares the same backing resource.

PoolAllocator(PoolAllocator const& other) noexcept = default;

Rebinding constructor; builds an allocator for a different value type that shares the same backing resource.

template<class U>
PoolAllocator(PoolAllocator<U, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES> const& other) noexcept;

Not explicit so we can easily construct it with the correct resource

PoolAllocator(ResourceType* resource) noexcept;

Parameters

Name

Description

other

The allocator being copied.

resource

The pool resource that this allocator forwards to.

Created with MrDocs