forked from boostorg/smart_ptr
Add add_ref parameter to intrusive_ptr::reset, add tests for reset.
This commit is contained in:
1 parent
4e46cb0609
commit
4de3f36839
3 files changed
+221
-10
No files matched your search
@@ -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