The OpenD Programming Language

Checked.get

struct Checked(T, Hook = Abort)
inout
get
()
if (
is(T == Checked!(U, H),
U
H
)
)

Return Value

Type: auto

A copy of the underlying value.

Examples

auto x = checked(ubyte(42));
static assert(is(typeof(x.get()) == ubyte));
assert(x.get == 42);
const y = checked(ubyte(42));
static assert(is(typeof(y.get()) == const ubyte));
assert(y.get == 42);

Meta