Returns the current COM reference count of the managed object.
| 37 | /// Returns the current COM reference count of the managed object. |
| 38 | /// </summary> |
| 39 | unsigned long ref_count() const |
| 40 | { |
| 41 | assert(_object != nullptr); |
| 42 | return _object->AddRef(), _object->Release(); |
| 43 | } |
| 44 | |
| 45 | /// <summary> |
| 46 | /// Returns the stored pointer and releases ownership without decreasing the reference count. |
no test coverage detected