MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / pop_front

Method pop_front

subprojects/llama.cpp/common/sampling.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 T pop_front() {
57 if (sz == 0) {
58 throw std::runtime_error("ring buffer is empty");
59 }
60 T value = data[first];
61 first = (first + 1) % capacity;
62 sz--;
63 return value;
64 }
65
66 const T & rat(size_t i) const {
67 if (i >= sz) {

Callers 3

pop_deferred_taskMethod · 0.45
start_loopMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected