Boost logo

Boost :

From: witt_ive (witt_at_[hidden])
Date: 2002-01-31 17:47:42


The default_iterator_policies member often take the iterator_adaptor
argument by const reference. Doesn't this introduce uneccessary
tempories?

As in:

template <class IteratorAdaptor>
typename IteratorAdaptor::reference dereference(const
IteratorAdaptor& x) const
        { return *x.base(); }

Would mean get a copy of base (base() const is used) and dereference
that.

Thomas


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