MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / CefRefCount

Method CefRefCount

core/src/pengu.h:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142{
143 template <typename U>
144 CefRefCount(const U *) noexcept : T{}, ref_(1) {
145 T::base.size = sizeof(U);
146 T::base.add_ref = _Base_AddRef;
147 T::base.release = _Base_Release;
148 T::base.has_one_ref = _Base_HasOneRef;
149 T::base.has_at_least_one_ref = _Base_HasAtLeastOneRef;
150 self_delete_ = [](void *self) noexcept { delete static_cast<U *>(self); };
151 }
152
153 CefRefCount(nullptr_t) noexcept : CefRefCount(static_cast<T *>(nullptr)) {}
154

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected