Opened 16 years ago

Closed 16 years ago

#843 closed Feature Requests (Accepted)

reset() for intrusive_ptr

Reported by: nobody Owned by: Peter Dimov
Milestone: Component: smart_ptr
Version: None Severity:
Keywords: Cc:

Description

I would like to see

intrusive_ptr<T>::reset()

to release the contained pointer (if any), and set it to zero, i.e. with same effect (at least I *think* it should the same effect ;)) as

operator=(intrusive_ptr<T>())


Reason: interface consistency with shared_ptr, scoped_ptr


Or is there any reason for not having it?

peterchen

Change History (1)

comment:1 by Peter Dimov, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=305912
Originator: NO

Added to CVS.
Note: See TracTickets for help on using tickets.