Namespaces
Variants
Views
Actions

std::type_info

From cppreference.com
< cpp‎ | types
Revision as of 11:09, 27 October 2011 by Cubbi (Talk | contribs)

Template:cpp/types/type info/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <type_info>
</td>

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

<td class="t-dcl-nopad">
class type_info;
</td>

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

The class type_info holds implementation-specific information about a type, including the name of the type and means to compare two types for equality or collating order. This is the class returned by the typeid operator.

The type_info class is noncopyable.

Member functions

Template:cpp/types/type info/dcl list operator comp
(constructor)
[deleted]
has neither default nor copy constructors
(public member function)
operator=
[deleted]
can not be copy-assigned
(public member function)
(destructor)
[virtual]
(destructor)
(virtual public member function)
checks whether the referred type precedes referred type of another type_info
object in the implementation defined order, i.e. orders the referred types
(public member function) [edit]
(C++11)
returns a value which is identical for the same types
(public member function) [edit]
implementation defined name of the type
(public member function) [edit]