dynamic::scopeguard Class Reference
[Exceptions and error-handling]

Executes a given functor when the scopeguard is destroyed. More...

#include <lib.hpp>

Inheritance diagram for dynamic::scopeguard:

cg::not_copyable cg::not_assignable

List of all members.

Public Member Functions

 scopeguard (const var &v)
 Pass in the functor to execute at scope exit.
 ~scopeguard ()
 Call the functor.
void dismiss ()
 Do not call the functor in the destructor.
void set (const var &)
 Change the functor called in the destructor.


Detailed Description

Executes a given functor when the scopeguard is destroyed.

Definition at line 523 of file lib.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Dec 18 22:14:18 2008 for C++Script by  doxygen 1.5.7.1