bolts.traits

Provides utilites that allow you to determine type traits

Modules

functions
module bolts.traits.functions

Traits that can query information about functions

has
module bolts.traits.has

Traits that tell you if one thing has another thing

symbols
module bolts.traits.symbols

Traits about symbols

types
module bolts.traits.types

Traits that can query type information about stuff.

Public Imports

bolts.traits.functions
public import bolts.traits.functions;
bolts.traits.has
public import bolts.traits.has;
bolts.traits.symbols
public import bolts.traits.symbols;
bolts.traits.types
public import bolts.traits.types;

Examples

class C {}
struct S {}
struct S1 {
    this(typeof(null)) {}
    void opAssign(typeof(null)) {}
}

static assert( isNullSettable!C);
static assert(!isNullSettable!S);
static assert( isNullSettable!S1);
static assert( isNullSettable!(int *));
static assert(!isNullSettable!(int));

Meta