[llvm-dev] Extending llvm::iterator_range

Alexandre Isoard via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 11 16:29:40 PST 2017


Hello,

Our llvm::iterator_range is quite minimalist in design, it does not even
have an "empty" method.
Is that because we want it to work on all iterators (including those dirty
OutputIterator)?

Maybe we can add a little bit to it?

I recently needed:
- bool empty()
- value_type& font()
- value_type& back()
- void advance_begin(difference_type n)
- void advance_end(difference_type n)

Would you be open to those?

-- 
*Alexandre Isoard*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171211/962ff1d2/attachment.html>


More information about the llvm-dev mailing list