The OpenD Programming Language

PointerTarget

Returns the target type of a pointer.

import std.traits;
alias PointerTarget(T : T*) = T

Examples

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

Meta