template<class T>
class Opm::AdditionalObjectDeleter< T >
A custom deleter that will delete an additional object, too.
In dune-istl most parallel preconditioners hold a reference to a sequential preconditioner. In CPRPreconditioner and NewtonIterationBlackoilInterleaved we use unique_ptr for the memory management. Ergo we need to construct the sequential preconditioner with new and make sure that it gets deleted together with the enclosing parallel preconditioner. Therefore this deleter stores a pointer to it and deletes it during destruction.
- Template Parameters
-
The | type of the additional object to be deleted. |