4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
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
 

Member Function Documentation

◆ operator()()

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

Deletes a pointer using std::free

Calls std::free(_ptr)

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