|
Boost Users : |
Subject: Re: [Boost-users] shared_ptr and std::set::erase
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-10-09 11:42:45
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 09 October 2008 10:58 am, Bill Somerville wrote:
>
> The less than operator for shared_ptr compares the address of the
> pointee, not its value.
>
No, I believe it provides a partial weak ordering based on shared ownership.
It's possible for two shared_ptr that share ownership to point at different
addresses (via the aliasing constructor for example).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFI7iZ15vihyNWuA4URAvWlAKCDP42K5Ml2sfH7cIprJWYj/7k3sgCeJ9dq
tvWkCTEvoDWi8gEPDsj0ou0=
=HJ+E
-----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