|
Boost Users : |
From: Ernst Murnleitner (mur_at_[hidden])
Date: 2005-01-02 06:53:32
Hello Readers,
I have a question regarding boost::intrusive_ptr and
std::list::iterator.
I have a std::list<boost::intrusive_ptr<CDataset> > which holds my
datasets.
My question: Is the increment counter of the intrusive_ptr incremented
only by doing the following (assigning a iterator to a dataset)? (I
could try myself, but I do not know what happens with other
compilers/libraries)
typedef List std::list<boost::intrusive_ptr<CDataset> >;
List list;
...
// List holds datasets
...
// Get an iterator:
List::iterator iter = list.begin();
// Is the Increment counter of the dataset incremented by this action?
// Or does the iterator not necessarily keep a pointer to the dataset
directly?
It would be nice, if somebody could answer this question. In the
meantime I try out, what my implementation makes (gcc, linux).
Greetings
Ernst
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net