Namespaces
Variants
Views
Actions

std::type_index::name

From cppreference.com
< cpp‎ | types‎ | type index
Revision as of 18:00, 26 August 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
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
 
 
const char* name() const;
(since C++11)

Returns the name of the associated std::type_info object. Equivalent to calling std::type_info::name() directly.

Contents

[edit] Parameters

(none)

[edit] Return value

The name of the associated type_info object.

[edit] Exceptions

(none) (until C++14)
noexcept specification:  
noexcept
  
(since C++14)

[edit] Example