orange.util.Traits

Members

Aliases

BaseTypeTupleOf
alias BaseTypeTupleOf = Phobos.BaseTypeTuple
Unqual
alias Unqual = Phobos.Unqual

Unqualifies the given type, i.e. removing const, immutable and so on.

Enums

isStaticArray
eponymoustemplate isStaticArray(T)

Evaluates to true if T is a static array.

Templates

BaseTypeOfEnum
template BaseTypeOfEnum(T)

Evaluates to the base type of the enum.

BaseTypeOfPointer
template BaseTypeOfPointer(T)

Evaluates to the type the pointer points to.

ElementTypeOfArray
template ElementTypeOfArray(T : T[])

Evaluates the type of the element of the array.

KeyTypeOfAssociativeArray
template KeyTypeOfAssociativeArray(T)

Evaluates to the key type of the associative array.

TypeOf
template TypeOf(alias expr)

Evaluates to the type of the given expression or type. The built-in $(D_KEYWORD typeof) only accepts expressions, not types. If given a type, this will just evaluate to the given type as is.

TypeOfDataType
template TypeOfDataType(T)

Evaluates to the type of the data type.

ValueTypeOfAssociativeArray
template ValueTypeOfAssociativeArray(T)

Evaluates to the value type of the associative array.

isArray
template isArray(T)

Evaluates to true if T is an array.

isAssociativeArray
template isAssociativeArray(T)

Evaluates to true if T is a an associative array.

isClass
template isClass(T)

Evaluates to true if T is class.

isEnum
template isEnum(T)

Evaluates to true if T is an enum.

isFloatingPoint
template isFloatingPoint(T)

Evaluates to true if T is a floating point type.

isFunctionPointer
template isFunctionPointer(T)

Evaluates to true if T is a function pointer.

isInterface
template isInterface(T)

Evaluates to true if T is an interface.

isObject
template isObject(T)

Evaluates to true if T is a class or an interface.

isPointer
template isPointer(T)

Evaluates to true if T is a pointer.

isPrimitive
template isPrimitive(T)

Evaluates to true if T is a primitive type.

isReference
template isReference(T)

Evaluates to true if T is an object or a pointer.

isString
template isString(T)

Evaluates to true if T is a string.

isStruct
template isStruct(T)

Evaluates to true if T is a struct.

isSymbol
template isSymbol(alias arg)

Evaluates to true if the given argument is a symbol.

isType
template isType(alias symbol)

Evaluates to true if the given symbol is a type.

isVoid
template isVoid(T)

Evaluates to true if T is void.

Meta

Authors

Jacob Carlborg

Version

Initial created: Jan 26, 2010