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 » FEATURE: T* ArrayIndex::Detach(int i) AND mini fix
Re: FEATURE: T* ArrayIndex::Detach(int i) AND mini fix [message #26350 is a reply to message #26337] Mon, 26 April 2010 17:50 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
same with me, i havent used ArrayIndex so far. in a recent case i was in need to have kind of a "dictionary" of data objects, which have their own GetHashValue, so i wanted to see if ArrayIndex is my coice to avoid ArrayMap usage like to save some writing.

OBJECT * obj; 
... 
amap.Add(obj->GetHashValue(), obj);


rather like this
OBJECT * obj;
...
ind.Add(obj);


but realized i have no means to provide a hash on its own, so i stayed with ArrayMap. and by the way had a bit of investigation of API. frankly, i really like the containers Smile
 
Read Message
Read Message
Read Message
Previous Topic: WHY? "Index:: and ArrayIndex::operator[]" returns const T&
Next Topic: _pick understanding
Goto Forum:
  


Current Time: Wed Jun 18 09:07:25 CEST 2025

Total time taken to generate the page: 0.10886 seconds