MCPcopy Create free account
hub / github.com/crosire/reshade / ref_count

Method ref_count

source/com_ptr.hpp:39–43  ·  view source on GitHub ↗

Returns the current COM reference count of the managed object.

Source from the content-addressed store, hash-verified

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.

Callers 2

Calls 2

AddRefMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected