Skip to main content

TypeInfo

Contains metadata and information about types in the Aleph type system.

TypeInfo objects store comprehensive information about types, including whether they are const, reference, pointer, void, undefined, or arithmetic types. They enable runtime type checking, type comparisons, and type-safe operations.

Constructors

TypeInfo(const TypeInfo other) -> TypeInfo

Constructs a TypeInfo object from another TypeInfo.

Parameters

  • other: The TypeInfo object to copy from.

Symbols

NameDescription
==Performs equality comparison operation.

Members

NameDescription
add_type_conversionAdds a type conversion function between two types.
bare_equalChecks if two types are equal ignoring const and reference qualifiers.
is_type_arithmeticChecks if the type is arithmetic.
is_type_constChecks if the type is constant.
is_type_pointerChecks if the type is a pointer.
is_type_referenceChecks if the type is a reference.
is_type_undefChecks if the type is undefined.
is_type_voidChecks if the type is void.
nameReturns the name of a type from its Type_Info.