This class
implements RAII for a frontend::Queue.
More...
#include <keyvalue/pattern/Pattern.h>
Public Member Functions | |
QueueRaii (frontend::Queue &queue) | |
Acquires resource (frontend::Queue). | |
Private Attributes | |
frontend::Queue & | queue_ |
This class
implements RAII for a frontend::Queue.
By constructing an object type at the beginning of parse() we assure a commit-or-roolback semantics for the Queue and, thus, a strong exception safety guarantee for the parse() method.
QueueRaii | ( | frontend::Queue & | queue | ) |
Acquires resource (frontend::Queue).
queue | : frontend::Queue which will have the commit-or-rollback semantics. |