lvalueOf

Creates an lvalue or rvalue of type T for typeof(...) and __traits(compiles, ...) purposes. No actual value is returned.

  1. T rvalueOf [@property getter]
  2. T lvalueOf [@property getter]
    @property ref
    T
    lvalueOf
    (
    T
    )
    (
    inout __InoutWorkaroundStruct = __InoutWorkaroundStruct.init
    )

Parameters

T

The type to transform

Note: Trying to use returned value will result in a "Symbol Undefined" error at link time.

Examples

static int f(int);
static assert(is(typeof(f(rvalueOf!int)) == int));
static bool f(ref int);
static assert(is(typeof(f(lvalueOf!int)) == bool));

Meta

Suggestion Box / Bug Report