This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Where is docs for typeid(x).name()?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Lee Rhodes" <lee at rhoba dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 11 Jul 2007 14:58:54 -0700
- Subject: Re: Where is docs for typeid(x).name()?
- References: <000001c7c3f0$708b4050$0701a8c0@lee8075b>
"Lee Rhodes" <lee@rhoba.com> writes:
> I have figured out by experimenting that typeid(x).name() produces:
> 'c' if x is type char
> 'h' if x is type unsigned char
> 'i' if x is type int
> 'j' if x is type unsigned int
> ...and so on.
>
> Where can I find the full list of such symbolic representations of internal
> types?
I believe they are mangled type names. The mangling is described
in section 5.1.5 here:
http://www.codesourcery.com/cxx-abi/abi.html#mangling
Ian