Fastest way to reset every value of std::vector to 0

前端 未结 6 2090
执念已碎
执念已碎 2020-12-07 07:31

What\'s the fastest way to reset every value of a std::vector to 0 and keeping the vectors initial size ?

A for loop with the [] operator ?

6条回答
提交回复
热议问题