2 ms·
I'd normally agree with you, but in this case this function is meant to be used for vectorizable input so it doesn't really matter since it's using a random-acc
by listeria 2y ago
I'd normally agree with you, but in this case this function is meant to be used for vectorizable input so it doesn't really matter since it's using a random-access iterator, otherwise you should go with the usual std::count_if().
Then again, it doesn't hurt to be pedantic.
- zombot 2y agoIt's not about being pedantic, it's about building the right habits. Building a habit of using x++ instead of ++x is suboptimal.