Module bolts.traits.types

Traits that can query type information about stuff.

Functions

NameDescription
StringOf() Returns a stringof another template with it's real and non-mangled types

Manifest constants

NameTypeDescription
areCombinable 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 Returns true if two things are equatable
isCopyConstructable Checks to see if a type is copy constructable - postblit doesn't count.
isNonTriviallyCopyConstructable Checks to see if a type is non-trivially copy constructable
isNullSettable Returns true of T can be set to null
isNullTestable Returns true of T can be check with null using an if statement
isNullType True if T is of type null
isRefType Checks if a compile time entity is a reference type.
isTriviallyCopyConstructable Checks if a type is trivially constructable, that is no user-defined copy constructor exists - postblit doesn't count.
isValueType Checks if a compile time entity is a value type

Global variables

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