Camargue
Public Member Functions | List of all members
CMR::util::C_resource_deleter< T > Struct Template Reference

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.
 

Detailed Description

template<typename T>
struct CMR::util::C_resource_deleter< T >

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.


The documentation for this struct was generated from the following file: