$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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