std::type_info::operator==, std::type_info::operator!=

From Cppreference

Jump to: navigation, search
bool operator==( const type_info& rhs ) const;

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

Checks if the objects refer to the same types.

Contents

[edit] Parameters

rhs - another type information object to compare to

[edit] Return value

true if the comparison operation holds true, false otherwise

[edit] Example

[edit] See also

before
checks whether the referred type precedes referred type of another type_index
object in the implementation defined order, i.e. orders the referred types
(public member function)