stdtypeindex
std::type_index is a standard library class that provides a lightweight, comparable wrapper around run-time type information obtained from std::type_info. It is defined in the <typeindex> header and is commonly used to identify and compare types in containers, registries, and dispatch schemes. While the term stdtypeindex is sometimes seen in informal writing, the official name is std::type_index.
A type_index object can be constructed from a std::type_info object, via the constructor std::type_index(const std::type_info&). Because
std::type_index supports equality and ordering through operator==, operator!=, and operator<. This enables its use as a
Internally, std::type_index identifies a type by the underlying std::type_info, which is stable for the program lifetime.
Limitations include that type_index does not provide per-type metadata beyond the identity, and human-readable names from