Sign in to follow this  
dangerdaveCS

std::list riddle

Recommended Posts

Hey. I've run a profiler on my code, and with a whopping 34% of my processing going to the following crazy function (as output by the profiler), I would really like to know what I'm dealing with (note INTTRIPLE is a struct I created to simply store 3 ints):
std::list<struct INTTRIPLE,class std::allocator<struct INTTRIPLE> >::_Orphan_ptr(class std::list<struct INTTRIPLE,class std::allocator<struct INTTRIPLE> > &,struct std::_List_nod<struct INTTRIPLE,class std::allocator<struct INTTRIPLE> >::_Node *)const

Can anyone decode this mess for me? Thanks for any help,

Share this post


Link to post
Share on other sites
This is an internal function called by the list, though off-hand I have no idea what it does. Your profiler should tell you where it's being called from (translated in terms of actual functions from your code).

Share this post


Link to post
Share on other sites
It would appear that the function is used by the iterator debugging support, which in turn tends to suggest that you're profiling a debug build, because iterator debugging should be off when _DEBUG is not defined. Profiling a debug build is, of course, mostly pointless.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this