typeidT
TypeidT is a term used in discussions of runtime type information to denote a type identity object associated with a compile-time type parameter T. It represents the identity of the type itself rather than any value of that type, enabling programs to reason about types at runtime without requiring instances.
Representation and access often involve a type information object such as TypeInfo, Class, or a type_descriptor.
Usage patterns include dynamic dispatch based on type, registration for serialization, reflection systems, and debugging tools.
Examples are usually presented in pseudocode since the exact syntax varies by language. A typical pattern is
History and variants note that real-world languages implement type information differently: C++ uses the typeid operator
Notes emphasize that the exact semantics depend on the language and implementation. Accessing type identities may