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 final @property ref int foo() { return this.foo; }");
static assert(GenerateRefReader!("foo", stringValue) ==
    "public final @property ref string foo() { return this.foo; }");
static assert(GenerateRefReader!("foo", intArrayValue) ==
    "public final @property ref int[] foo() { return this.foo; }");

Meta