PointerTarget

Returns the target type of a pointer.

alias PointerTarget(T : T*) = T

Examples

static assert(is(PointerTarget!(int*) == int));
static assert(is(PointerTarget!(void*) == void));

Meta