Hi!
I am looking for something to compact the clear and push_back in one line...
std::vector<int> v(3,100);
v.clear();
v.push_back(4);
I have thought that vector::swap may be usefull for this task but still figuring out how.
Any sugestion or idea?
Thank you in advance!