Hi,
Due to my lack of understanding of how vectors work i have a question regarding cleaning vectors. The situation is the following:
Is it better to do this :
orCode:while(){ vector<int>vec; //fill vector }
when i say better i mean faster since my vectors are quite large and they need to be filled and emptied many times over.Code:vector<int>vec; while(){ vector<int>().swap(vec) //fill vector }
thnx
baxy