- How to split a char array? - 2 Updates
SG <s.gesemann@gmail.com>: Apr 04 11:23AM -0700 > [...] std::list is often better than both vector and ptr_vector if there are frequent insertions/erases in the middle. Can you name an example where you did this? And if you can, how did you find the insertion locations? Did you store iterators to the elements somewhere else for O(1) insertion into the list at the desired locations? Or did you do a linear search for this location? What was the significance of the ordering in the list? What were *all* the requirements w.r.t. the data structure? I can't remember a situation during my last 9 years in which std::list would have been beneficial over anything else. If you have, please share this use-case. Cheers! sg |
leigh.v.johnston@googlemail.com: Apr 04 11:51AM -0700 As you also appear to have stubbornly refused to utilise the advantages of std::list during your career probably due to following some blinkered groupthink I suspect you would simply reject any valid std::list use-case I provide so I won't even bother. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment