|
Boost : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-07-15 01:28:09
"Peter Dimov" wrote:
> So it's possible.
>
> template<class T> bool is_empty( weak_ptr<T> const & wp )
> {
> weak_ptr<T> empty;
> return !(empty < wp) && !(wp < empty);
> }
>
> Whether it should be used is another story. :-)
>
It could be added as an example
into documentation, at least.
/Pavel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk