ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] boost::any question
by Trey Jackson other posts by this author
Jun 8 2004 12:01AM messages near this date
[boost] Re: Thread lib (good reason for static) | [boost] Re: boost::any question
All,

I just started looking at boost::any, pretty nice.  I looked at the
implementation, and it uses (as you know) a pointer to an object
(w/virtual methods) on the heap, and typeid to determine if conversion is
possible.

I understand the memory implications (a new object copied on heap).
But I'd like to get a better handle on performance, namely:

I'm unfamiliar with typeid - and how it's implemented.

Does anyone have good pointers to how typeid is generally implemented?
Or even specifically: I'm using gcc3.x on RH Linux.


I'd just like to avoid/guarantee I'm not going to be hit by some O(N)
look-up for using typeid a lot.


thanks,

TJ
-- 
Trey Jackson
tjackson@[...].com

"Her hair glistened in the rain like nose hair after a sneeze."
-- Chuck Smith, Woodbridge
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Trey Jackson
Maxim Yegorushkin
Doug Gregor

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved