public member function


bool operator!= (const type_info& rhs) const;
bool operator!= (const type_info& rhs) const noexcept;
Compare types
Returns whether the types identified by two type_info objects are not the same.

A derived type is not considered the same type as any of its base classes.


A type_info object identifying a type.

Return Value

Returns false if both type_info objects identify the same type, and true otherwise.


See type_info::operator==.

Exception safety

No-throw guarantee: this member function never throws exceptions.

See also