Freundlich's C++ toolkit
Public Member Functions
fcppt::c_deleter Struct Reference

Detailed Description

A deleter that uses std::free to destroy an object.

Public Member Functions

template<typename T >
void operator() (T *const _ptr) const noexcept
 Deletes a pointer using std::free More...

Member Function Documentation

◆ operator()()

template<typename T >
void fcppt::c_deleter::operator() ( T *const  _ptr) const

Deletes a pointer using std::free

Calls std::free(_ptr)

_ptrThe pointer to delete
Template Parameters
TCan be any type where T * can be converted to void %*