Let's say I want to store three types in tuple : int , float and std::vector<double>
If I leave aside the questions of the subsequent interface, does this
tuple<int, float, vector<int>> t;
have any differences from this
tuple<vector<int>, int, float> t;
Due to the implementation of tuple as a class of variational bases, I expect a different layout for the created classes, but does it matter anyway ? Also, are there any optimization considerations that should be considered when placing types in a tuple (for example, put the largest first, etc.)?
c ++ c ++ 11 tuples
Nikos Athanasiou May 28 '14 at 11:17 2014-05-28 11:17
source share