Talk:cpp/algorithm/all any none of
From cppreference.com
I notice that the example use member functions v.cbegin and v.cend.
I considered changing to begin(v), end(v), since the free functions are preferred over the members, and it would be nice to establish that as the norm.
On the other hand, there are no non-member cbegin, cend-yet (pre C++14), and perhaps member cbegin/cend are preferable to non-member non-const begin-end?
90.228.215.93 10:12, 15 August 2014 (PDT) Lukas
- You only really need cbegin/cend if you're using auto type deduction (that's the reason they were introduced). I think it's fine to use begin/end here. --Cubbi (talk) 13:04, 15 August 2014 (PDT)