On 21 November 2016 at 21:29, Paul A. Bristow
On Sunday, November 20, 2016 8:25:20 PM CST Jeremy Murphy wrote:
Hi,
just wondering what the mood in Boost.Iterator is for new features?
At work
we recently found use for an orbiting iterator, specifically a circular one, which effectively wraps at the start/end of a bounded range. (The domain is digital signal processing.)
Must be useful to some people, so yes.
(Needs tests, an example and docs of course to add to Boost).
Thanks, Paul, always good to hear from you. Yes, the response so far convinces me that it is a useful and fairly elementary feature that has simply been overlooked.
Sounds to me like a ring_view - (ring_view?) which has been discussed for a long time.
We could bikeshed about the name?
Orbiting iterator, ring_iterator, circulator, never-ending ... ;-)
Yes, although I can tell you now that my proposal will be for a class
circular_iterator