Sign in to follow this  

dictionary vs list vs um something

Recommended Posts

Ok currently i'm using the standard libraries vector container. what i need is something similar to a dictionary, i ask for a specific name and i'm passed the object that relates to that name. while i need this i _also_ need to be able to traverse the collection in order (backwards and forwards) and finally i need to be able to insert and remove items into the collection in specific order. I was thinking of using a dictionary collection then having a list inside the collection that stores the order of traversal then when you ask to traverse the list it simply returns the dictionary items in the order of the list. anyone have a different suggestion?

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