This class provides methods for creating and destroying nodes using the appropriate allocator‐traits of the (template parameter) type ALLOCATOR.

Synopsis

Declared in <bslstl_bidirectionalnodepool.h>

template<
    class VALUE,
    class ALLOCATOR>
class BidirectionalNodePool;

Type Aliases

Name

Description

AllocatorType

Alias for the allocator type defined by SimplePool.

size_type

Alias for the size_type of the allocator defined by SimplePool.

Member Functions

Name

Description

BidirectionalNodePool [constructor]

Constructors

adopt

Adopt all outstanding allocations from the specified pool.

allocator

allocator overloads

cloneNode

Allocate a node and copy‐construct its VALUE from original.

deleteNode

Destroy linkNode and return its memory to this pool.

emplaceIntoNewNode

Allocate a node and construct its VALUE from arguments.

moveIntoNewNode

Allocate a node and move‐construct its VALUE from original.

release

Relinquish all memory currently allocated with the memory pool maintained by this object.

reserveNodes

Reserve memory for at least the specified numNodes.

swapExchangeAllocators

Exchange this pool's nodes and allocator with those of other.

swapRetainAllocators

Exchange this pool's nodes with those of other.

Non-Member Functions

Name

Description

swap

Exchange the nodes of the specified a and b objects.

Created with MrDocs