If I have thousands of struct or class objects in a vector, how to find those that are needed, in a fast way? For example: Making a game, and I need fas
For example:
for_each(v.begin(),v.end(), [](int e) { if (e%2==1)//vector elements that are not divided by 2 without remainder cout<