typeindex
typeindex is the C++ standard library class std::type_index, a wrapper around std::type_info that makes runtime type information usable as keys in associative containers. It is defined in the header <typeindex> alongside std::type_info and the typeid operator. std::type_index provides a stable, comparable representation of a type, enabling type-based lookups and dispatch.
A type_index value is typically created from the typeid expression, for example by std::type_index t(typeid(MyClass)); it
Key features include support for equality and ordering comparisons (operator== and operator<), which allows std::type_index to
Common use cases involve type-based registries, per-type dispatch tables, and maintaining metadata about types in a
Note that std::type_index does not implement a full reflection system; it merely provides a stable, comparable