How C++ `typeid` operator works
C++ language include an operator called typeid ( https://en.cppreference.com/w/cpp/language/typeid). > Queries information of a type. Used where the dynamic type of a polymorphic object must be known and for static type identification. It gives you information about the type of an object, as long as…