From: David Abrahams (dave_at_[hidden])
Date: 2004-01-09 10:01:12
hartmutkaiser_at_[hidden] (Hartmut Kaiser) writes:
> You're right, but IMHO this is a complete different situation. The iterator
> adaptor constructor copies the iterator parameter anyway into the own
> m_iterator member, so further working of the iterator_adaptor does not rely
> on a reference as would do the algorithms, if they'd take references. Taking
> the iterator parameter by const reference simply would avoid one additional
> copy operation, which may be costly for more complex iterators.
The only thing that gives me pause are Andrei's findings here:
Are they inapplicable in this case?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk