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

Function StrongRef

common/internal/reference_count.h:291–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291inline void StrongRef(const ReferenceCount& refcount) noexcept {
292 const auto count =
293 refcount.strong_refcount_.fetch_add(1, std::memory_order_relaxed);
294 ABSL_DCHECK_GT(count, 0);
295}
296
297inline void StrongRef(const ReferenceCount* absl_nullable refcount) noexcept {
298 if (refcount != nullptr) {

Callers 11

ReferenceCountFunction · 0.85
OwnFunction · 0.85
TESTFunction · 0.85
BorrowedMethod · 0.85
ToCordMethod · 0.85
CopyToCordMethod · 0.85
AppendToCordMethod · 0.85
ConstructMethod · 0.85
CopyFromMethod · 0.85
SubstringMethod · 0.85
TrimMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68