[PATCH] D49956: [ADT] Add an early-increment iterator and range adaptor.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 30 19:31:42 PDT 2018
dblaikie added a comment.
Yeah, that's vaguely frightening as a thing (I mean, yeah, the assertions help catch misuse - but still).
Got a pointer to an example of where you want to do this? Any chance of inverting this into a lambda-driven algorithm instead, maybe?
pre_inc_for(R, [&](const auto &V) {
...
});
Repository:
rL LLVM
https://reviews.llvm.org/D49956
More information about the llvm-commits
mailing list