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 |
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);
|
|
|
Goto Forum:
Current Time: Sat Jun 01 01:24:01 CEST 2024
Total time taken to generate the page: 0.00774 seconds
|