SharedOf

template SharedOf (
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

Suggestion Box / Bug Report