std::type_info::name

From Cppreference

Jump to: navigation, search
const char* name() const;

Returns an implementation defined null-terminated character string containing the name of the type. No guarantees are given, in particular, the returned string can be identical for several types and change between invocations of the same program.

Contents

[edit] Parameters

(none)

[edit] Return value

null-terminated character string containing the name of the type.

[edit] Example

[edit] See also

hash_code (C++11)
returns a value which is the identical for the same types
(public member function)