[PATCH] D63632: Update the llvm::enumerate utility class result_pair to use the 'iterator_traits<R>::reference' instead of 'ValueOfIter<R> &'.
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 15:32:40 PDT 2019
rriddle added a comment.
My understanding is that input_iterators do not have to return a reference, and may return a value type or some other proxy object.
(Sorry if there is a specific website that should be linked)
See specification of LegacyInputIterator: https://en.cppreference.com/w/cpp/named_req/InputIterator
See example of iterator returning a value_type, std::istreambuf_iterator: https://en.cppreference.com/w/cpp/iterator/istreambuf_iterator
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63632/new/
https://reviews.llvm.org/D63632
More information about the llvm-commits
mailing list