What’s the fastest way to reset every value of a std::vector<int> to 0 and keeping the vectors initial size ?

A for loop with the [] operator ?

6 Answers
6

Leave a Reply

Your email address will not be published. Required fields are marked *