Actions
Cleanup #432
closeduse STL find() and iterators instead of count()
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
There are 100 million instances of code like
if (container.count(foo)) return container[foo];
or similar. We should be using iterators so that the hashes/maps don't need to be traversed twice.
Updated by Noah Watkins over 11 years ago
The semantic patch tool Coccinelle has an open issue for supporting C++. Something to keep an eye out for, and would probably be perfect for this task.
Updated by Rishabh Kumar over 7 years ago
Hi. I wish to do this major cleanup. I will break it down into a series of commits depending on the subdirectories.
Updated by Patrick Donnelly about 5 years ago
- Status changed from New to Closed
Closing this, there's a never-ending stream of these.
Actions