hasDisabledPostblit

Is true iff the postblit of T is disabled (@disable this(this)).

template hasDisabledPostblit (
T
) {
enum hasDisabledPostblit;
enum hasDisabledPostblit;
}

Examples

static struct S
{
    @disable this(this);
}
static assert(!hasDisabledPostblit!int);
static assert( hasDisabledPostblit!S);

See Also

Meta