5 May
2015
5 May
'15
6:31 a.m.
tuple_vector
shapes; shapes.push_back(Point{1.0, 1.0} ); This is neat, but it' not quite the same thing. Unlike std::vectorboost::any, your tuple_vector does not organize objects into strictly linear arrangement. Using your example, there is no way to draw shapes in the order they were inserted into container.
Good point! So it loses overall ordering, only preservers it at the type level. The reason is that objects gets stored in linear memory per type.