Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-10-29 10:36:30


shunsuke skrev:
> Thorsten Ottosen wrote:
>> You would rather see range_mutable_iterator and range_const_iterator there?
> Yes.
>
> I've found an interesting quote in doc/boost_range.html:
>
> The special metafunctions range_result_iterator and range_reverse_result_iterator
> are not part of any Range concept,
>
> You knew it.

Well, those docs are so old now, I'm not sure they should be take too
seriously.

The formulation I'm leaning towards in the new docs are the following:

Single Pass Range:

types:

range_iterator<T>::type
range_iterator<const T>::type
range_size<T>::type

expresions:

boost::begin(r)
boost::end(r)

...

Random Access Range:

expressions:
boost::size(r);

Now, the ways you provide a concept map may involve
types such as range_mutable_iterator, const_iterator, and functions
range_begin/range_end.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk