StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Safe::Heap::ObjectDeleter Struct Reference

Destroy the concrete object and return its block to Free. More...

#include <StormByte/safe/pointers.hxx>

Public Member Functions

template<class U>
void operator() (U *pointer) const noexcept
 Destroy pointer with the concrete destructor.

Public Attributes

void(* destroy )(void *) noexcept = nullptr
 Concrete destructor stored by Unique.

Detailed Description

Destroy the concrete object and return its block to Free.

Member Function Documentation

◆ operator()()

template<class U>
void StormByte::Safe::Heap::ObjectDeleter::operator() ( U * pointer) const
inlinenoexcept

Destroy pointer with the concrete destructor.

Template Parameters
UStatic pointee. The stored destructor is the real one.
Parameters
pointerObject to destroy, or null.

Member Data Documentation

◆ destroy

void(* StormByte::Safe::Heap::ObjectDeleter::destroy) (void *) noexcept = nullptr
noexcept

Concrete destructor stored by Unique.


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