Daily bit(e) of C++ | typeid operator, std::type_info
Daily bit(e) of C++ #200, The runtime type querying and information tools: typeid and std::type_info.
The typeid operator can be applied to types and expressions and will return a reference to a std::type_info object representing the type (of the expression).
When applied to polymorphic types (except during construction and destruction), the typeid operator will evaluate the expression and return the dynamic type of the expression.