forked from boostorg/smart_ptr
Add add_ref parameter to intrusive_ptr::reset, add tests for reset.
This commit is contained in:
@@ -146,6 +146,11 @@ public:
|
||||
this_type( rhs ).swap( *this );
|
||||
}
|
||||
|
||||
void reset( T * rhs, bool add_ref )
|
||||
{
|
||||
this_type( rhs, add_ref ).swap( *this );
|
||||
}
|
||||
|
||||
T * get() const BOOST_NOEXCEPT
|
||||
{
|
||||
return px;
|
||||
|
||||
Reference in New Issue
Block a user