Allocator.reallocateInPlace

Reallocates a memory block in place if possible or returns $(D_KEYWORD false). This function cannot be used to allocate or deallocate memory, so if p is $(D_KEYWORD null) or size is 0, it should return $(D_KEYWORD false).

interface Allocator
shared pure nothrow @nogc
bool
reallocateInPlace
(
ref void[] p
,
size_t size
)

Parameters

p void[]

A pointer to the memory block.

size size_t

Size of the reallocated block.

Return Value

Type: bool

$(D_KEYWORD true) if successful, $(D_KEYWORD false) otherwise.

Meta