OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FreeDeleter Struct Reference

#include <FreeDeleter.h>

Public Member Functions

template<typename T >
void operator() (const T *p) const
 

Detailed Description

Deleter class to be used with std::unique_ptr for managing memory allocated with malloc.

Example usage:

std::unique_ptr<void, FreeDeleter> ptr(malloc(1000));

Member Function Documentation

◆ operator()()

template<typename T >
void FreeDeleter::operator() ( const T *  p) const
inline

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