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

Function release

common/memory.h:556–559  ·  view source on GitHub ↗

Relinquishes ownership of `T*`, returning it. If `T` was allocated and constructed using an arena, no further action is required. If `T` was allocated and constructed without an arena, the caller must eventually call `delete`.

Source from the content-addressed store, hash-verified

554 // allocated and constructed without an arena, the caller must eventually call
555 // `delete`.
556 ABSL_MUST_USE_RESULT T* release() noexcept {
557 PreRelease();
558 return std::exchange(ptr_, nullptr);
559 }
560
561 void reset() noexcept { reset(nullptr); }
562

Callers 15

IdentExprClass · 0.85
SelectExprClass · 0.85
CallExprClass · 0.85
StructExprClass · 0.85
ComprehensionExprClass · 0.85
release_operandMethod · 0.85
release_iter_rangeMethod · 0.85
release_accu_initMethod · 0.85
release_loop_stepMethod · 0.85
release_resultMethod · 0.85
release_targetMethod · 0.85

Calls 1

PreReleaseFunction · 0.85

Tested by

no test coverage detected