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

Function absl_nullable BorrowerRelease

common/memory.h:434–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432namespace common_internal {
433
434inline const ReferenceCount* absl_nullable BorrowerRelease(
435 Borrower borrower) noexcept {
436 uintptr_t ptr = borrower.ptr_;
437 if (Owner::IsReferenceCount(ptr)) {
438 return Owner::AsReferenceCount(ptr);
439 }
440 return nullptr;
441}
442
443} // namespace common_internal
444

Callers

nothing calls this directly

Calls 2

IsReferenceCountFunction · 0.85
AsReferenceCountFunction · 0.85

Tested by

no test coverage detected