bolts.traits.types

Traits that can query type information about stuff.

Members

Enums

isValueType
eponymoustemplate isValueType(T...)

Checks if a compile time entity is a value type

Functions

StringOf
string StringOf()

Returns a stringof another template with it's real and non-mangled types

Templates

StringOf
template StringOf(alias U, string sep = ", ", string beg = "!(", string end = ")")

Returns a stringof another template with it's real and non-mangled types

areCombinable
template areCombinable(Values...)

Tells you if a list of types, which are composed of ranges and non ranges, share a common type after flattening the ranges (i.e. ElementType)

areEquatable
template areEquatable(T...)

Returns true if two things are equatable

isCopyConstructable
template isCopyConstructable(T...)

Checks to see if a type is copy constructable - postblit doesn't count.

isNonTriviallyCopyConstructable
template isNonTriviallyCopyConstructable(T...)

Checks to see if a type is non-trivially copy constructable

isNullSettable
template isNullSettable(T...)

Returns true of T can be set to null

isNullTestable
template isNullTestable(T...)

Returns true of T can be check with null using an if statement

isNullType
template isNullType(T...)

True if T is of type null

isNullable
deprecated template isNullable(T...)
Undocumented in source.
isRefType
template isRefType(T...)

Checks if a compile time entity is a reference type.

isTriviallyCopyConstructable
template isTriviallyCopyConstructable(T...)

Checks if a type is trivially constructable, that is no user-defined copy constructor exists - postblit doesn't count.

Meta