public member function


const char* name() const;
Get type name
Returns a null-terminated character sequence that may identify the type currently referenced to by the object.

Internally, the function simply returns the result of calling member name on the type_info it refers to.



Return Value

A c-string with the name of the type.

Data races

No data races are initiated by this member function.

Exception safety

If the object refers to a valid type_info object, this member function never throws exceptions (no-throw guarantee).
Otherwise, it causes undefined behavior.

See also