logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
HashSet sorting (make it stop! lol)

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
weldieran



Joined: 05 Aug 2005
Posts: 71

PostPosted: Sat Dec 03, 2005 21:12    Post subject: HashSet sorting (make it stop! lol) Reply with quote

I tried to figure this out on my own.. to make HashSet STOP sorting the data i put into it. I would like the data to come back to me in the same order I put it in.

I looked at the map function of the standard library that hashset uses, and found a reference that says its possible to cancel the sorting that map does, but couldn't find anywhere that actually said how to do it.

Anyone know anything about it? (no, not interested in workarounds of using numbers in my keynames when adding data)
Back to top
View user's profile Send private message
vallis



Joined: 13 Jun 2005
Posts: 6

PostPosted: Mon Oct 09, 2006 6:40    Post subject: Reply with quote

Late response, I know, but isn't a hash inherently unordered?

It sounds like you are trying to use a hash for a purpose it isn't designed for. (Sounds like what you want is a list, not a hash?)

V.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group