4 ms·
Your points 2 and 3 are satisfied by using an iterator to keep track of the position.
by zerohp 13y ago
Your points 2 and 3 are satisfied by using an iterator to keep track of the position.
- ambrop7 13y agoBut then you have to pull those iterators into almost everything that deals with your objects, making the code hard to follow, and wasting memory. The problem also gets worse when your objects are in more than one list (which you can't literally do with std::list anyway) since you have to keep several iterators around.
- deleted 13y ago[deleted]