|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-07-12 06:53:42
From: "Christian Thäter" <chth_at_[hidden]>
[...]
> Short conclusion of features:
[of a linked shared_ptr]
> Pro's:
> never throws
> never allocates memory by itself
> new semantics: reset() and operator= affect all pointers according to the
resource
> predictable timing behaviour
> faster than boost::shared_ptr when used with less than lets say 8 to 16
copies
* you can enumerate all instances.
> Con's:
> dtor, copy, assign and use_count using O(N) algorithms instead O(1) like
boost::shared_ptr
> which decreases performance when many copies are in use.
* difficult/inefficient to make thread safe.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk