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

Method size

eval/eval/evaluator_stack.h:48–56  ·  view source on GitHub ↗

Return the current stack size.

Source from the content-addressed store, hash-verified

46
47 // Return the current stack size.
48 size_t size() const {
49 ABSL_DCHECK_GE(values_, values_begin_);
50 ABSL_DCHECK_LE(values_, values_begin_ + max_size_);
51 ABSL_DCHECK_GE(attributes_, attributes_begin_);
52 ABSL_DCHECK_LE(attributes_, attributes_begin_ + max_size_);
53 ABSL_DCHECK_EQ(values_ - values_begin_, attributes_ - attributes_begin_);
54
55 return values_ - values_begin_;
56 }
57
58 // Return the maximum size of the stack.
59 size_t max_size() const {

Callers 2

ReserveMethod · 0.95
HasEnoughMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected