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

Method to_vector

subprojects/llama.cpp/common/sampling.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 std::vector<T> to_vector() const {
74 std::vector<T> result;
75 result.reserve(sz);
76 for (size_t i = 0; i < sz; i++) {
77 result.push_back(data[(first + i) % capacity]);
78 }
79 return result;
80 }
81
82 void clear() {
83 // here only reset the status of the buffer

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected