49 requires std::convertible_to<U*, T*>
66 T* target =
reinterpret_cast<T*
>(p);
68 using altraits = std::allocator_traits<
decltype(
allocator)>;
70 altraits::deallocate(
allocator, target, 1);
The main libER stand-in for ER allocator proxies.
Definition from_allocator.hpp:308
ELDEN RING allocation interface and from::allocator.
from::allocator< T > get_allocator_of(const T *p) noexcept
Get the allocator of an object allocated by ELDEN RING.
Definition from_allocator.hpp:426
void(*)(void *) delay_deleter
Signature of the function called when an object is to be deleted.
Definition from_delay_delete.hpp:20
LIBERAPI void request_delete(delay_deleter deleter, void *p)
Request deletion of an object.
Delay deleter that models std::default_delete.
Definition from_delay_delete.hpp:36
void operator()(T *p) const noexcept
Request object deletion.
Definition from_delay_delete.hpp:60
constexpr delay_delete() noexcept=default
Default constructor.