I need a container that can store any of these:
Class C
{
};
C c1;
C c2;
C c3;
std::tuple<C> tup1(c1);
std::tuple<C, C> tup2(c1, c2);
std::tuple<C, C, C> tup3(c1, c2, c3);
How do I declare a container that could store any of these? std::vector is fine for an example, but anything that overloads operator[] for fast lookup (indexed) is good.
Aucun commentaire:
Enregistrer un commentaire