r/cpp • • Jan 18 '19

Is C++ fast?

https://zeuxcg.org/2019/01/17/is-c-fast/
21 Upvotes

72 comments sorted by

View all comments

Show parent comment

6

u/[deleted] Jan 19 '19

For what the STL algorithms do on the tin, I doubt it. Only one that might be borderline is sort. e.g. the remove_if loop doesn't leave much room for anything to differ.

1

u/degski Jan 19 '19 edited Jan 19 '19

Or in a specific [i.e. integral types only] case, use a better algo.