GenerateRefReader

Undocumented in source.
template GenerateRefReader (
string name
alias field
) {}

Members

Manifest constants

GenerateRefReader
enum GenerateRefReader;
Undocumented in source.

Static functions

helper
enum helper()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

int integerValue;
string stringValue;
int[] intArrayValue;

static assert(GenerateRefReader!("foo", integerValue) ==
    "public static final @property ref auto foo() " ~
    "@nogc nothrow @safe { return this.foo; }");
static assert(GenerateRefReader!("foo", stringValue) ==
    "public static final @property ref auto foo() " ~
    "@nogc nothrow @safe { return this.foo; }");
static assert(GenerateRefReader!("foo", intArrayValue) ==
    "public static final @property ref auto foo() " ~
    "@nogc nothrow @safe { return this.foo; }");

Meta