Immut

Same as Const!(T) but for immutable

template Immut (
T
) {}

Members

Aliases

Immut
alias Immut = immutable(T)
Undocumented in source.

Examples

Immut!(char)[] foo()
{
    return "aaa"; // ok, immutable
    return new char[]; // error, mutable
}

Meta