isGCPointer

@trusted nothrow @nogc
bool
isGCPointer
(
T
)
(
const T* ptr
)

Return Value

Type: bool

true iff ptr is handled by D's garbage collector (GC).

Examples

int s;
int* sp = &s;
assert(!sp.isGCPointer);
int* ip = new int;
assert(ip.isGCPointer);

Meta