Namespaces
Variants
Views
Actions

std::type_info::hash_code

From cppreference.com
< cpp‎ | types‎ | type info
Revision as of 14:42, 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
 
 
size_t hash_code() const;
(since C++11)

Returns an unspecified value, which is identical for objects, referring to the same type. No other guarantees are given, in particular, the value can change between invocations of the same program.

Contents

Parameters

(none)

Return value

some value, which is identical for the same types.

Example

See also

checks whether the objects refer to the same type
(public member function) [edit]
implementation defined name of the type
(public member function) [edit]