mir.conv

Conversion utilities.

Members

Functions

emplaceInitializer
void emplaceInitializer(T chunk)

Emplace helper function.

uninitializedFillDefault
T[] uninitializedFillDefault(T[] array)
xdestroy
void xdestroy(T[] ar)

Destroy structs and unions usnig __xdtor member if any. Do nothing for other types.

Imports

emplace (from core.lifetime)
public import core.lifetime : emplace;
Undocumented in source.

Templates

to
template to(T)

The to template converts a value from one type to another. The source type is deduced and the target type must be specified, for example the expression to!int(42.0) converts the number 42 from double to int. The conversion is "unsafe", i.e., it does not check for overflow.

Meta

Authors

Ilia Ki