MCPcopy Create free account
hub / github.com/apple/coremltools / Next

Method Next

deps/protobuf/benchmarks/cpp/cpp_benchmark.cc:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 WrappingCounter(size_t limit) : value_(0), limit_(limit) {}
80
81 size_t Next() {
82 size_t ret = value_;
83 if (++value_ == limit_) {
84 value_ = 0;
85 }
86 return ret;
87 }
88
89 private:
90 size_t value_;

Callers 4

BenchmarkCaseMethod · 0.45
BenchmarkCaseMethod · 0.45
BenchmarkCaseMethod · 0.45
BenchmarkCaseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected