std::type_index::name

From Cppreference

Jump to: navigation, search
const char *name() const;
(C++11 feature)

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

[edit] Parameters

(none)

[edit] Return value

the name of the associated type_info object.

[edit] Example