The OpenD Programming Language

ImmutableOf

import std.traits;
alias ImmutableOf(T) = immutable(T)

Parameters

T

The type to qualify

Return Value

T with the immutable qualifier added.

Examples

static assert(is(ImmutableOf!(int) == immutable int));
static assert(is(ImmutableOf!(const int) == immutable int));
static assert(is(ImmutableOf!(inout int) == immutable int));
static assert(is(ImmutableOf!(shared int) == immutable int));

Meta