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;
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?
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.