Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-10-02 07:04:44


"Howard Hinnant" <hinnant_at_[hidden]> wrote in message
news:83B293FA-1013-11D9-9D49-003065D18932_at_twcny.rr.com...
| On Sep 26, 2004, at 10:28 AM, Pavol Droba wrote:

| container<sole_ptr<T>> will have the same overhead as that demonstrated
| in the Smart Container library. A big difference will be that
| iterators into the container will dereference smart pointers, and not
| the pointed-to elements. I also anticipate C++0X will contain some
| really slick indirect_iterator types that will transform
| container<sole_ptr<T>>::iterator appropriately. These will likely be
| heavily influenced by (if not based on) the Boost.Iterator Library.

This brings up a question: how should these iterators cope with nulls
as you intend sole_ptr<T> to allow? Afterall, if the iterator is indirected it
needs to
assume non-null values.

br

Thorsten


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