| 255 | |
| 256 | template <class T> |
| 257 | inline void |
| 258 | Ptr<T>::clear() |
| 259 | { |
| 260 | if (m_ptr) { |
| 261 | if (!m_ptr->refcount_dec()) { |
| 262 | m_ptr->free(); |
| 263 | } |
| 264 | m_ptr = nullptr; |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | template <class T> |
| 269 | inline Ptr<T> & |
no test coverage detected