xentara-utils v2.0.4
The Xentara Utility Library
|
A wrapper around std::destroy_at() that can be used as a deleter for std::unique_ptr. More...
#include <xentara/utils/memory/DestroyAt.hpp>
Public Member Functions | |
auto | operator() (Type *object) const -> void |
Deletes an object. | |
A wrapper around std::destroy_at() that can be used as a deleter for std::unique_ptr.
This class allow the use of unique_ptr to destroy objects that were allocated using placement new or std::construct_at()
auto xentara::utils::memory::DestroyAt< Type >::operator() | ( | Type * | object | ) | const -> void |
Deletes an object.
object | The object |