MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / absl_nullable OwnerRelease

Function absl_nullable OwnerRelease

common/memory.h:294–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292namespace common_internal {
293
294inline const ReferenceCount* absl_nullable OwnerRelease(Owner owner) noexcept {
295 uintptr_t ptr = std::exchange(owner.ptr_, kMetadataOwnerNone);
296 if (Owner::IsReferenceCount(ptr)) {
297 return Owner::AsReferenceCount(ptr);
298 }
299 return nullptr;
300}
301
302} // namespace common_internal
303

Callers

nothing calls this directly

Calls 2

IsReferenceCountFunction · 0.85
AsReferenceCountFunction · 0.85

Tested by

no test coverage detected