View Single Post
Old 03-05-2005, 07:02 PM   #9
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

I think you should be more worried about how clearly the datastructure fits the task than how performant it is until you've profiled and determined that it's a bottleneck. A priority_queue is ideal because it does the work of finding the next event to fire for you.

Also, you should not have any deletes. That's what weak referencing is for.
Yui Unifex is offline   Reply With Quote