density
C++11 library for paged memory management, function queues, heterogeneous queues and lifo memory management
Public Member Functions | Static Public Member Functions | List of all members
f_destroy Class Reference

#include <runtime_type.h>

Public Member Functions

void operator() (void *i_object) const noexcept
 

Static Public Member Functions

template<typename TARGET_TYPE >
static constexpr f_destroy make () noexcept
 

Detailed Description

Destroys an instance of the target type, and returns the address of the complete type. The target type must satisfy the requirements of Destructible.

Member Function Documentation

static constexpr f_destroy make ( )
inlinestaticnoexcept

Creates an instance of this feature bound to the specified target type

void operator() ( void *  i_object) const
inlinenoexcept

Destroys an instance of the target type.

Parameters
i_objectpointer to the object to destroy. Can't be null. If the dynamic type of the pointed object is not the target type (assigned by the function make), the behavior is undefined.
Returns
The address of the complete object that has been destroyed.

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