OpaqueHandle.TypeDef

Creates a new type based on an existing type.

template OpaqueHandle(string name)
template TypeDef (
T
string name
T init = T.init
) {}

Parameters

T

Base type of the typedef.

name

An extra identifier for the type.

init

Initializer value for this type.

Examples

alias MyInt = TypeDef!(int, "MyInt");
assert(!is(MyInt == int));

Meta