|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2003-01-31 10:35:53
"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:009501c2c923$b4de48a0$1d00a8c0_at_pdimov2...
> [...]
> shared_ptr keeps a copy of p in the "ownership policy" (the count
> structure.) Its "storage policy" (px) doesn't own the pointer. But I may
> be misunderstanding the context.
Well, if *I* understand correctly, you have a "fat count". But since it
is shared among pointers, it's a constant cost per object. I thought
Dave A was talking about storing p multiple times *per pointer*.
That's what I thought was really fat.
Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk