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
  Note:
 See   TracTickets
 for help on using tickets.
    
