This class provides a destruction guard that pops an element from a FixedQueue.
Declared in <bdlcc_fixedqueue.h>
template<class VAL>
class FixedQueue_PopGuard;
This class provides a guard that, upon its destruction, will remove (pop) the indicated element from the FixedQueue object supplied at construction. Note that this guard is used to provide exception safety when popping an element from a FixedQueue object.
| Name | Description |
|---|---|
FixedQueue_PopGuard [constructor] | Create a guard that pops the indicated element on destruction. |
~FixedQueue_PopGuard [destructor] | Update the state of the FixedQueue object supplied at construction to remove (pop) the indicated element, and destroy the popped object. |