[PATCH] D144503: [ADT] Allow `llvm::enumerate` to enumerate over multiple ranges
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 22:04:48 PST 2023
dblaikie added a comment.
> Because the enumerate_result returned on dereference is a temporary, enumeration result can no longer be used through an lvalue ref.
Is it valid to have a value-returning iterator? (what about op->, which needs a pointer returned?) I thought that wasn't valid for most iterator categories & you had to resort to storing an object inside the iterator to return a pointer to in op*/op->
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144503/new/
https://reviews.llvm.org/D144503
More information about the llvm-commits
mailing list