mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-11-20 09:20:07 +01:00
intrusive_ptr::reset() added.
[SVN r45089]
This commit is contained in:
@@ -126,6 +126,11 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
void reset()
|
||||
{
|
||||
this_type().swap( *this );
|
||||
}
|
||||
|
||||
void reset( T * rhs )
|
||||
{
|
||||
this_type( rhs ).swap( *this );
|
||||
|
||||
Reference in New Issue
Block a user