intrusive_ptr::reset() added.

[SVN r45089]
This commit is contained in:
Peter Dimov
2008-05-03 20:12:25 +00:00
parent d13f1d8694
commit efdc390bc9
2 changed files with 11 additions and 0 deletions

View File

@@ -126,6 +126,11 @@ public:
return *this;
}
void reset()
{
this_type().swap( *this );
}
void reset( T * rhs )
{
this_type( rhs ).swap( *this );