genericguard.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

namespace  Opm
 

Functions

template<class Callback >
GenericGuard< Callback > Opm::make_guard (Callback &callback)
 

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.