operator==

Returns true if types are the same.

  bool operator==(const type_info& rhs) const;
  

Returns true if the objects are the same type.