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

Function IsUniqueRef

common/internal/reference_count.h:371–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371ABSL_MUST_USE_RESULT
372inline bool IsUniqueRef(const ReferenceCount& refcount) noexcept {
373 const auto count = refcount.strong_refcount_.load(std::memory_order_acquire);
374 ABSL_DCHECK_GT(count, 0);
375 ABSL_ASSUME(count > 0);
376 return count == 1;
377}
378
379ABSL_MUST_USE_RESULT
380inline bool IsUniqueRef(const ReferenceCount* absl_nullable refcount) noexcept {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68