| 512 | |
| 513 | template <typename T> |
| 514 | void |
| 515 | IntrusivePtr<T>::unset() |
| 516 | { |
| 517 | if (nullptr != m_obj) { |
| 518 | auto &cp = m_obj->m_intrusive_pointer_reference_count; |
| 519 | |
| 520 | if (0 == --cp) { |
| 521 | IntrusivePtrPolicy<T>::finalize(m_obj); |
| 522 | } |
| 523 | m_obj = nullptr; |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | template <typename T> |
| 528 | void |
no outgoing calls
no test coverage detected