- Use std::begin() / std::end() instead of Range.begin() / Range.end(). Might as well allow these functions to work on C-arrays.
- use typename everywhere instead of class.
- Always pass predicates by value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I was going to suggest fancy schmancy ADL stuff for std::begin as well, but I dunno that it is worth it. We can add an ADL based dispatcher if anyone comes up with a container that wants it.
LGTM with a nit below.
include/llvm/ADT/STLExtras.h | ||
---|---|---|
573–574 ↗ | (On Diff #78969) | Here and below the I previously was an iterator. I'd use V as the variable here? |