libhatchet
Loading...
Searching...
No Matches
hxdo_not_delete Class Reference

#include <hxmemory_manager.h>

Public Member Functions

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

Detailed Description

hxdo_not_delete - A version of hxdefault_delete that does not delete the object.

Allows removing object destruction from container destructors that handle static allocations or don't own their contents for another reason.

Member Function Documentation

◆ operator bool()

hxdo_not_delete::operator bool ( void ) const
inline

Always returns false, indicating the deleter should not be called.

◆ operator()()

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

Does not delete the object.


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