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