|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-09-24 18:02:25
On Tuesday 24 September 2002 07:18 pm, Bohdan wrote:
> "Douglas Gregor" <gregod_at_[hidden]> wrote in message
> > ... or just iterator_traits extended to allow trivial iterators.
> > boost/iterator_traits.hpp, anyone?
>
> IMHO i like this idea. The simplest solutions are always the best , but
> are you sure that this two idioms (iterators & pointers ) should be mixed ?
> Does standart allow such iterators ?
>
> PS: not too serious:
> If "anyone" implements iterator_traits for a smart_ptr, than
> what will be the name for its iterator category:
> "uninterative_iterator_category" ?
trivial_iterator_tag
See the TrivialIterator concept documentation here:
http://www.sgi.com/tech/stl/trivial.html
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk