Boost logo

Boost Users :

Subject: Re: [Boost-users] boost solution for transforming stl algorithms on proxy iterators?
From: Oswin Krause (Oswin.Krause_at_[hidden])
Date: 2012-10-17 07:10:10


Hi,

> C++ requires it to be `iterator_traits<Iterator>::reference`, I
> thought, or does it require it to be real reference like
> `iterator_traits<Iterator>::value_type&`?

The first is a requirement for every iterator. However, there are a few
more lines written in pure standardese which are described in the
boost.iterator docu:

http://www.boost.org/doc/libs/1_51_0/libs/iterator/doc/new-iter-concepts.html#motivation

"Value Access Requirements in Existing Iterator Categories:
[..]
Forward Iterator *i is T&"

where T is the value_type of the iterator.

Greetings,
Oswin


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net