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

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Add and AddPick should return reference to added element
Add and AddPick should return reference to added element [message #1674] Mon, 13 March 2006 15:54 Go to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Vector & Array has these methods:
T&   Add()
void Add(const T& x)
void AddPick(pick_ T& x)
I would like all of these to return reference to added element as in:
T& Add()                 
T& Add(const T& x)
T& AddPick(pick_ T& x)
So that I can write code like array.Add(someThing).ProcessSomething(r);
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux SDL [BUG?][WORKAROUND]
Next Topic: subclassing LineEdit is ugly
Goto Forum:
  


Current Time: Sat Apr 25 04:51:34 GMT+2 2026

Total time taken to generate the page: 0.00427 seconds