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
FEATURE: T* ArrayIndex::Detach(int i) AND mini fix [message #26295] Thu, 22 April 2010 11:06 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
the Detach function available in Array:: and ArrayMap (recently added) should be added to ArrayIndex as well, right?

Index.h:229 should be added sth like

	T        *PopDetach()                           { B::hash.Drop(1); return B::key.PopDetach(); }
	T        *Detach(int i)                         { B::hash.Remove(i); return B::key.Detach(i); }


and a mini fix: (maybe forgotten? standard param)

Index.h:52 should be
	void  Drop(int n = 1);
 
Read Message
Read Message
Read Message
Previous Topic: WHY? "Index:: and ArrayIndex::operator[]" returns const T&
Next Topic: _pick understanding
Goto Forum:
  


Current Time: Tue May 14 13:28:18 CEST 2024

Total time taken to generate the page: 0.02408 seconds