BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::Deque_BlockProctor< VALUE_TYPE, ALLOCATOR > Class Template Reference

#include <bslstl_deque.h>

Public Member Functions

 Deque_BlockProctor (deque< VALUE_TYPE, ALLOCATOR > *deque, bool atFront)
 
 ~Deque_BlockProctor ()
 
void release ()
 

Detailed Description

template<class VALUE_TYPE, class ALLOCATOR>
class bsl::Deque_BlockProctor< VALUE_TYPE, ALLOCATOR >

This class implements a proctor that, upon destruction and unless its release method has previously been invoked, deallocates empty blocks at one end (i.e., front or back) of a proctored deque. The end at which empty blocks are to be proctored is indicated by a flag supplied at construction. See emplace for a use case.

See bslstl_deque

Constructor & Destructor Documentation

◆ Deque_BlockProctor()

template<class VALUE_TYPE , class ALLOCATOR >
bsl::Deque_BlockProctor< VALUE_TYPE, ALLOCATOR >::Deque_BlockProctor ( deque< VALUE_TYPE, ALLOCATOR > *  deque,
bool  atFront 
)

Create a block proctor object to proctor blocks at one end (i.e., front or back) of the specified deque as indicated by the specified atFront flag. If atFront is true, blocks at the front of deque are proctored; otherwise, blocks at the back of deque are proctored.

◆ ~Deque_BlockProctor()

template<class VALUE_TYPE , class ALLOCATOR >
bsl::Deque_BlockProctor< VALUE_TYPE, ALLOCATOR >::~Deque_BlockProctor ( )

Destroy this block proctor, and deallocate empty blocks at the back of the proctored deque as indicated by the atFront flag supplied at construction. If no deque is currently being managed, this method has no effect.

Member Function Documentation

◆ release()

template<class VALUE_TYPE , class ALLOCATOR >
void bsl::Deque_BlockProctor< VALUE_TYPE, ALLOCATOR >::release ( )
inline

Release from management the deque currently managed by this proctor. If no deque is currently being managed, this method has no effect.


The documentation for this class was generated from the following file: