
15 Jul
2005
15 Jul
'05
6:28 a.m.
"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