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 » WHY? "Index:: and ArrayIndex::operator[]" returns const T&
Re: WHY? "Index:: and ArrayIndex::operator[]" returns const T& [message #26335 is a reply to message #26308] Mon, 26 April 2010 09:29 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
yes, i understand your point, this is what i have written above. as for now, the Index is meant to be a container for *immutable* elements, if you want to modify the content of the container, you delete old elementand place a new element. but what if you want to update the container elements in place ? you'd need means to update the internal hash map..

BTW:

i think in any case, we'd need to more clearly outline what each container type is actually for..(in most cases at least), kind of a table... describing what they are used for in most day to day cases.

currently possible:

Vector - moveable elements random acces
Array - arbitrary elements random access
VectorMap - moveable elements hash access via a key
ArrayMap - arbitrary elements hash access via a key
Index - moveable elements hash access over element's value
ArrayIndex - arbitrary elements hash access over element's value

something in the sense of
http://www.cplusplus.com/reference/stl/
should be made for the upp containers, to make selection/comparison easy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strange issue with VectorMap<String, String>
Next Topic: FEATURE: T* ArrayIndex::Detach(int i) AND mini fix
Goto Forum:
  


Current Time: Fri Jul 18 00:03:23 CEST 2025

Total time taken to generate the page: 0.04224 seconds