Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Proposal on *Index: access via hash value
Re: Proposal on *Index: access via hash value [message #20691 is a reply to message #20686] Tue, 31 March 2009 20:17 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

mrjt, yes, I do have very close situation.

UPD: Finally U++ forced me to switch back to VectorMap. It seems like Index is not designed for such cases (but these cases happen very often IMO). Two big drawbacks:
1) Unable to find element by hash
2) Unable to change element, due to I have only (const T &) in return. But this seems too strict. Changing the object doesn`t necessary change it`s hash value. This approach forces one to declare all members as mutable.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with Core/Mt.h Mutex and RWMutex
Next Topic: .ini file
Goto Forum:
  


Current Time: Fri Jul 18 16:22:31 CEST 2025

Total time taken to generate the page: 0.03962 seconds