This class provides a proctor that clears a FixedQueue on destruction unless released.
Declared in <bdlcc_fixedqueue.h>
template<class VAL>
class FixedQueue_PushProctor;
This class provides a proctor that, unless the release method has been previously invoked, will remove and destroy all the elements from a FixedQueue object supplied at construction (putting that ring-buffer into a valid empty state) upon the proctor's destruction. Note that this guard is used to provide exception safety when pushing an element into a FixedQueue.
| Name | Description |
|---|---|
FixedQueue_PushProctor [constructor] | Create a proctor that manages queue and clears it unless released. |
~FixedQueue_PushProctor [destructor] | Destroy this proctor and, if release was not called on this object, remove and destroy all the elements from the FixedQueue object supplied at construction. |
release | Release from management the FixedQueue object supplied at construction. |