| 54 | |
| 55 | public: |
| 56 | oidn_inline Ref() noexcept : ptr(nullptr) {} |
| 57 | oidn_inline Ref(std::nullptr_t) noexcept : ptr(nullptr) {} |
| 58 | oidn_inline Ref(const Ref& other) noexcept : ptr(other.ptr) { if (ptr) ptr->incRef(); } |
| 59 | oidn_inline Ref(Ref&& other) noexcept : ptr(other.ptr) { other.ptr = nullptr; } |