This will be controversial. But I've watched a few cppcon talks and I'm tired of people recommending std::for_each. Ranged for loop wins every time. It's faster in debug. It's easier to debug. It's shorter. It's easier to extend. Use ranged for. Don't use trivial algorithms.
-
-
Replying to @zeuxcg
I'm so backwards. I still use C++ like it's roughly 2003.
2 replies 0 retweets 11 likes -
Replying to @richgel999 @zeuxcg
Not sure this is a great thing. unique_ptr and shared_ptr are almost primordial nowadays.
1 reply 0 retweets 1 like
I hear you - but I very rarely deal directly with pointers
12:18 PM - 17 Oct 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.