btl.traits.common

TODO

Members

Aliases

Unshared
alias Unshared(T) = T

remove shared from type T.

Unshared
alias Unshared(T : shared U, U) = U
Undocumented in source.

Structs

Forward
struct Forward

Type used in forward constructors.

Templates

classHasIndirections
template classHasIndirections(T)

Same as std.traits.hasIndirections but for classes.

instanceSize
template instanceSize(T)

Size of instance, if T is class then __traits(classInstanceSize, T), otherwise T.sizeof

isCopyAssignableElement
template isCopyAssignableElement(From, To = From)
Undocumented in source.
isCopyConstructableElement
template isCopyConstructableElement(From, To = From)
Undocumented in source.
isMoveAssignableElement
template isMoveAssignableElement(From, To = From)
Undocumented in source.
isMoveConstructableElement
template isMoveConstructableElement(From, To = From)
Undocumented in source.
shouldAddGCRange
template shouldAddGCRange(T)

TODO

Variables

isClassOrInterface
enum bool isClassOrInterface(T);

true if T is class or interface.

isRef
enum bool isRef(alias var);

same as __traits(isRef, var).

platformSupportGC
enum bool platformSupportGC;

TODO

platformSupportGC
enum bool platformSupportGC;
Undocumented in source.

Meta

Authors

Adam Búš