U++ framework
Do not panic. Ask here before giving up.

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: Wed Jun 24 02:12:26 GMT+2 2026

Total time taken to generate the page: 0.00417 seconds