commons::finally Class Reference
Exception-returning delegate for running a 0-ary void function.
More...
#include <delegates.h>
List of all members.
|
Public Member Functions |
| finally (const fn &f) |
Detailed Description
Exception-returning delegate for running a 0-ary void function.
A class that takes a functor and calls it on destruction, effectively giving you a `finally` clause. Particularly useful with clamp.
Definition at line 58 of file delegates.h.
The documentation for this class was generated from the following file: