This class provides a proctor that clears a FixedQueue on destruction unless released.
Synopsis
Declared in <bdlcc_fixedqueue.h>
template<class VAL>
class FixedQueue_PushProctor;
Description
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.
Member Functions
Name |
Description |
|
Create a proctor that manages |
|
Destroy this proctor and, if |
Release from management the |
Created with MrDocs