The OpenD Programming Language

SharedInoutOf

import std.traits;
alias SharedInoutOf(T) = shared(inout(T))

Parameters

T

The type to qualify

Return Value

T with the inout and shared qualifiers added.

Examples

static assert(is(SharedInoutOf!(int) == shared inout int));
static assert(is(SharedInoutOf!(int) == inout shared int));

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

Meta