Boost logo

Boost Users :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-08-20 12:02:33


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 20 August 2008 10:31 am, Jan Funke wrote:
> Hi,
>
> recently I wondered, whether there is any possibility to create a kind
> of "smart image", like the smart pointer of boost.
>
> What I'd like to have is an image, that frees it's allocated memory
> automatically on vanishing of the last view accessing it.
>
> Do you guys have any idea how to achieve this?
>

You could look at boost::shared_container_iterator for ideas, it does the
analogous thing for 1D containers/iterators.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIrEAa5vihyNWuA4URApHNAKDEsFQxbPiPBJxZSgty3MTOA9lKzQCdF4vh
eXIn1UukW82jV9jy27wbt3c=
=Yq+O
-----END PGP SIGNATURE-----


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