The OpenD Programming Language

InoutOf

import std.traits;
alias InoutOf(T) = inout(T)

Parameters

T

The type to qualify

Return Value

T with the inout qualifier added.

Examples

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

Meta