isAddress

Is true iff T is a memory address (either a class or a pointer). TODO: Replace with __traits(isAddress, T) when it's added.

@safe
enum bool isAddress(T);

Examples

static assert( isAddress!(int*));
static assert(!isAddress!(int));

class C {}
static assert( isAddress!(C));

struct S {}
static assert(!isAddress!(S));
static assert( isAddress!(S*));

Meta