lundi 17 décembre 2018

Given a tuple with vectors holding different types how do I extract the vector with minimum size?

For example:

auto t = std::make_tuple(std::vector<int>({1,2}), std::vector<double>({1.0, 2.0, 3.0}));

How do I extract the vector which holds the most values?

Aucun commentaire:

Enregistrer un commentaire