Subject: Re: [boost] [range] Can iterator_range also model Random Access Range?
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2013-12-29 01:44:04
On Mon, 09 Dec 2013 23:00:43 -0800, Nathan Ridge <zeratul976_at_[hidden]>
>> Unfortunately, and respectfully, that is not at all clear from either
>> docs, please reread range/reference/utilities/iterator_range.html and
>> range/reference/utilities/sub_range.html. The latter defers to the
>> and all the former states about range concepts is: "The intention of the
>> iterator_range class is to encapsulate two iterators so they fulfill the
>> Forward Range concept". And, obviously, just because some type fulfills
>> the Forward Range concept does not mean that it fulfills refinements
>> thereof. Additionally, there is no indication in the iterator_range doc
>> the underlying iterator models refinements of the Forward Iterator
>> concept, than its corresponding iterator_range class also models
>> refinements of the Forward Range concept. A statement along the lines of
>> the last sentence added to the iterator_range doc would go a long way
>> towards clarifying this, else one is left with being forced to deduce
> I agree that the documentation is incomplete here. I would be happy
> to review and commit a documentation patch.
I've created a pull request at GitHub.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk