Boost logo

Boost :

From: larsbj_at_[hidden]
Date: 2002-03-11 04:56:35

"David Abrahams" <david.abrahams_at_[hidden]> writes:

| I'm interested if it interacts intelligently with shared_ptr.
| What I want is a cache which can be incrementally flushed, such that the
| only items that will be destroyed have a reference count of zero.
| In other words, I want to use shared_ptrs to keep things alive as long
| as they are referenced; when the cache holds the only reference to an
| object, an explicit request for memory may release the final reference.

How far is this from what you would need?
Of course this one is written too serve a rather different need: avoid
to have thousands of equal objects around at the same time.

I guess you would want it to return a shared_ptr<Share> and to use a
different internal container?


Boost list run by bdawes at, gregod at, cpdaniel at, john at