Subclass for wrapped opaque objects with a free function. More...
Subclass for wrapped opaque objects with a free function.
This subclass allows a client to easily wrap any opaque object that needs a function to free it. This function (or function object) must be callable as:
Again, this is typical for the opaque objects implemented in MPI for instance. For example, in order to delete an MPI_Comm object created by the user (not MPI_COMM_WORLD), you must call the function MPI_Comm_free().