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 » Array : swapping element with a pointer
Re: Array : swapping element with a pointer [message #33757 is a reply to message #33756] Sat, 10 September 2011 22:05 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
Maybe something added to Array class :

void Swap(int i, T*&ptr) { T *tmp = ptr; ptr = vector[i]; vector[i] = tmp; }


I'd need for ArrayMap too... I wonder if it's automatic or not, adding it to Array class.
Will try....

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why this one leaks ?
Next Topic: [SOLVED] String.GetCount with umlaut
Goto Forum:
  


Current Time: Tue Aug 26 18:10:38 CEST 2025

Total time taken to generate the page: 0.05222 seconds