public member function
<typeinfo>

std::type_info::operator!=

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.

Parameters

rhs
A type_info object identifying a type.

Return Value

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

Example

See type_info::operator==.

Exception safety

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

See also