intrusive_ptr::reset added

[SVN r37406]
This commit is contained in:
Peter Dimov committed 2007-04-09 21:35:07 +00:00
1 parent ce72827dc7
commit 26f83e75ef
2 files changed
+12 -1

No files matched your search

+5
View File
@@ -105,6 +105,11 @@ public:
return *this;
}
void reset( T * rhs )
{
this_type( rhs ).swap( *this );
}
T * get() const
{
return p_;