Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | types‎ | type info
Revision as of 13:36, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
Type support
Basic types
Fundamental types
Fixed width integer types (C++11)
Numeric limits
C numeric limits interface
Runtime type information
Type traits
Primary type categories
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Type properties
(C++11)
(C++11)
(C++11)
(C++14)
Supported operations
Relationships and property queries
(C++11)
(C++11)
(C++11)
(C++11)
Type modifications
(C++11)(C++11)(C++11)
Type transformations
(C++11)
(C++11)
(C++11)
Type trait constants
 
std::type_info
Member functions
type_info::operator==type_info::operator!=
 

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
bool operator==( const type_info& rhs ) const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
bool operator!=( const type_info& rhs ) const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Checks if the objects refer to the same types.

Contents

Parameters

rhs - another type information object to compare to

Return value

true if the comparison operation holds true, false otherwise

Example

See also

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) [edit]