Camargue
|
Class template for deleting resources allocated by C functions. More...
#include <util.hpp>
Public Member Functions | |
void | operator() (T *ptr) const |
Call operator for deleting the managed pointer. | |
Class template for deleting resources allocated by C functions.
In calls to Concorde, memory allocation takes place through malloc and free, and it can be dangerous to delete memory that was malloc'd. Thus, A Concorde resource managed by a unique_ptr shall use this deleter to free the memory associated with the resource.