Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-03-08 07:10:09


To use the indirect_iterator which is currently in CVS with a smart pointer,
you'd need to supply:
1. An iterator whose value_type was the smart pointer (e.g.
std::list<std::auto_ptr<T> >::iterator)
2. The ultimate value_type, T
3. Possibly some of the other parameters, depending on your needs/desires

The version of indirect_iterator which is exposed in the previous boost
release is a lot harder to use; I don't recommend it.

-Dave

----- Original Message -----
From: "Steven Kirk" <steven.kirk_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, March 08, 2001 4:17 AM
Subject: [boost] Using indirect_iterator on smart pointers

> What would be the best way to use indirect_iterator from iterator_adaptors
> on smart pointers (e.g. auto_ptr, shared_ptr etc.)? Can it be used for
such
> a purpose? It's trying to find a value_type, difference_type for auto_ptr,
> but failing obviously.
>
>
> List-Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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