ConstOf

alias ConstOf(T) = const(T)

Parameters

T

The type to qualify

Return Value

T with the const qualifier added.

Examples

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

Meta