|
My Project
|
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 | Opm::GenericGuard< Callback > |
| A simple class which makes sure that a cleanup function is called once the object is destroyed. More... | |
Namespaces | |
| namespace | Opm |
| This file contains a set of helper functions used by VFPProd / VFPInj. | |
Functions | |
| template<class Callback > | |
| GenericGuard< Callback > | Opm::make_guard (Callback &callback) |
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.