Quick Links: |
#include <bslstl_deque.h>
Public Member Functions | |
Deque_BlockCreator (deque< VALUE_TYPE, ALLOCATOR > *deque) | |
~Deque_BlockCreator () | |
void | insertAtFront (size_type n) |
void | insertAtBack (size_type n) |
BlockPtr * | reserveBlockSlots (size_type numNewBlocks, bool atFront) |
void | release () |
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).