core.stdcpp.new_

D binding to C++ <new>

Types 3

structnothrow_t
enumalign_val_t : size_t
defaultAlignment = __STDCPP_DEFAULT_NEW_ALIGNMENT__
classbad_alloc : exception
Constructors

Functions 8

fnT * cpp_new(T, Args...)(auto ref Args args) if (!is(T == class))
fnT cpp_new(T, Args...)(auto ref Args args) if (is(T == class))
fnvoid cpp_delete(T)(T * ptr) if (!is(T == class))
fnvoid cpp_delete(T)(T instance) if (is(T == class))
fnvoid * __cpp_new(size_t count)Binding for ::operator new(std::size_t count)
fnvoid * __cpp_new_nothrow(size_t count, ref const(nothrow_t) = std_nothrow) nothrow;Binding for ::operator new(std::sizet count, const std::nothrowt&)
fnvoid __cpp_delete(void * ptr)Binding for ::operator delete(void* ptr)
fnvoid __cpp_delete_nothrow(void * ptr, ref const(nothrow_t) = std_nothrow) nothrow;Binding for ::operator delete(void* ptr, const std::nothrow_t& tag)

Variables 1

varnothrow_t std_nothrow