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:

Generated on Mon Mar 2 22:13:23 2009 for C++ Commons by  doxygen 1.5.6