intrusive_ptr::reset added

[SVN r37406]
This commit is contained in:
Peter Dimov
2007-04-09 21:35:07 +00:00
parent ce72827dc7
commit 26f83e75ef
2 changed files with 12 additions and 1 deletions
+5
View File
@@ -105,6 +105,11 @@ public:
return *this;
}
void reset( T * rhs )
{
this_type( rhs ).swap( *this );
}
T * get() const
{
return p_;