Boost logo

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
> predictable timing behaviour
> faster than boost::shared_ptr when used with less than lets say 8 to 16

* you can enumerate all instances.

> Con's:
> dtor, copy, assign and use_count using O(N) algorithms instead O(1) like
> 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, gregod at, cpdaniel at, john at