All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
genericguard.hh File Reference

A simple class which makes sure that a cleanup function is called once the object is destroyed. More...

Go to the source code of this file.

Classes

class  Ewoms::GenericGuard< Callback >
 A simple class which makes sure that a cleanup function is called once the object is destroyed. More...
 

Detailed Description

A simple class which makes sure that a cleanup function is called once the object is destroyed.

This class is particularly useful in conjunction with lambdas for code that might throw exceptions.