Namespaces
Variants
Views
Actions

std::type_index

From cppreference.com
< cpp‎ | types
Revision as of 07:44, 29 April 2011 by WikiSysop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/utility/rtti/type index/sidebar

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

<td>
Defined in header <type_index>
</td>

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

<td >
class type_index;
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> Template:ddcl list end

The type_index class is a wrapper class around a type_info object, that can be used as index in associative and unordered associative containers.

Template:dcl list mem cons
compares the underlying type_info objects
(public member function of Template:/title)
returns hashed code
(public member function of Template:/title)
returns implementation defined name of the type,
associated with underlying type_info object
(public member function of Template:/title)