As you may know, the tr1 library includes tuples which is a generalized struct.
But I'm wondering about the use of these tuples.
Why do
instead ofCode:int x = get<0>(mytuple) ;
Code:int x = mystruct.Firstmember;
Printable View
As you may know, the tr1 library includes tuples which is a generalized struct.
But I'm wondering about the use of these tuples.
Why do
instead ofCode:int x = get<0>(mytuple) ;
Code:int x = mystruct.Firstmember;
I suppose that since the number of members is arbitrary, how would you propose giving English names to fields?