The OpenD Programming Language

SharedOf

import std.traits;
alias SharedOf(T) = shared(T)

Parameters

T

The type to qualify

Return Value

T with the shared qualifier added.

Examples

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

Meta