isNullSettable

Returns true of T can be set to null

template isNullSettable (
T...
) if (
T.length == 1
) {}

Members

Aliases

U
alias U = from.bolts.traits.symbols.TypesOf!T[0]
Undocumented in source.

Manifest constants

isNullSettable
enum isNullSettable;
Undocumented in source.

Examples

class C {}
struct S1 {
    void opAssign(int*) {}
}
static assert(isNullSettable!S1);
static assert(isNullSettable!C);
static assert(isNullSettable!(int*));

struct S2 {}
static assert(!isNullSettable!S2);
static assert(!isNullSettable!int);

struct S3 {
    @disable this();
    void opAssign(int*) {}
}
static assert(isNullSettable!S3);

Meta