Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > What is type_info object?

Thread Tools

What is type_info object?

Posts: n/a
What is type_info object?
Reply With Quote
James Kanze
Posts: n/a
On Jun 11, 3:33 pm, sumsin <(E-Mail Removed)> wrote:
> What is type_info object?

What a typeid expression returns. As a minimum, it supports
comparison for equality (== and !=), and the functions before()
and name(); I'm pretty sure that an implementation is allowed to
add other things as well (not that I know of one that does).

Note that since it is not copiable nor assignable, you can't put
them in containers.

James Kanze (GABI Software) email:(E-Mail Removed)
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
type_info Rahul C++ 9 12-09-2007 12:51 PM
Storing std::type_info =?ISO-8859-1?Q?Erik_Wikstr=F6m?= C++ 2 08-11-2007 02:02 PM
virtual ~type_info(); Bobo C++ 3 01-21-2004 06:41 AM
virtual table, type_info node, type_info function skscpp C++ 5 11-14-2003 03:05 AM
type_info, vtable sks_cpp C++ 54 08-27-2003 03:57 PM