Memory manager that creates and deletes nodes for tree‐based containers.
Synopsis
Declared in <bslstl_treenodepool.h>
template<
class VALUE,
class ALLOCATOR>
class TreeNodePool;
Description
This class provides methods for creating and deleting nodes using the appropriate allocator traits of the (template parameter) type ALLOCATOR. This type is intended to be used as a private base‐class for a node‐based container, in order to take advantage of the empty‐base‐class optimization in the case where the base class has 0 size (as may be the case if the (template parameter) type ALLOCATOR is not a bslma::Allocator).
Type Aliases
Name |
Description |
Alias for the allocator type defined by |
|
Alias for the |
Member Functions
Name |
Description |
|
Constructors |
Adopt all outstanding allocations from the specified |
|
|
|
Allocate a node and copy‐construct its value from |
|
Destroy the value of |
|
Allocate a node and emplace‐construct its value from |
|
Return |
|
Allocate a node and move‐construct its value from |
|
Reserve memory for at least the specified |
|
Exchange this pool's nodes with those of |
|
Exchange this pool's nodes and allocator with those of |
|
Exchange this pool's nodes with those of |
Created with MrDocs