Generic sentry class that invokes some callable object of type F upon disposal of an instance of this...
Definition: sentry.h:38
virtual ~Sentry()
Destructor for the class.
Definition: sentry.h:63
Sentry(F dispose)
Constructor for the class that stores the callable object passed as argument, to be invoked upon disp...
Definition: sentry.h:60
F m_dispose
The callable to be invoked upon disposal of the object.
Definition: sentry.h:55