This class allocates blocks at the front or back of a deque and tentatively adds them to the deque. It also keeps track of how many of the newly allocated blocks have actually been used by the deque. The destructor automatically frees any unused blocks (e.g., in case an exception is thrown).
Synopsis
Declared in <bslstl_deque.h>
template<
class VALUE_TYPE,
class ALLOCATOR>
class Deque_BlockCreator;
Member Functions
Name |
Description |
|
Construct a block allocator for the specified |
|
Free any blocks that have been allocated by this allocator but have not yet been used by the deque. |
Allocate the specified |
|
Allocate the specified |
|
Relinquish control over any allocated blocks. The destructor will do nothing following a call to this method. |
|
Make room for the specified |
Created with MrDocs