std::type_info::name - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::type_info::name

From cppreference.com
< cpp‎ | types‎ | type info

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.

### [edit] Parameters

(none)

### [edit] Return value

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

### [edit] Notes

With compilers such as gcc and clang, the returned string can be piped through `c++filt -t` to be converted to human-readable form.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/types/type_info/name&oldid=59493"
Category:

- Todo no example