+ 1
vector of list in c++
Hello, I got something like that vector<list<string>> how to add a string to a first list in side first vector container.
1 Respuesta
+ 3
vec[0].push_front(str)
or vec[0].push_back(str)
the first adds string to the beginning of the list, the second to its end