dimanche 1 novembre 2015

Copy vector element of a vector to another vector

I have this vector,

std::vector <std::vector<std::string> > gname;

gname.push_back(std::vector<std::string>({"John","jake"}));
gname.push_back(std::vector<std::string>({"May", "harold}));

and I want to put all the values from gname to,

std:vector<std::string> cname;

It this possible using c++11?

Aucun commentaire:

Enregistrer un commentaire