MCPcopy Create free account
hub / github.com/catboost/catboost / Clear

Method Clear

library/cpp/containers/dense_hash/dense_hash.h:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 void Clear() {
157 for (auto& bucket : Buckets) {
158 if (bucket.first != EmptyMarker) {
159 SetValue(bucket, EmptyMarker, mapped_type{});
160 }
161 }
162 NumFilled = 0;
163 }
164
165 void MakeEmpty(size_type initSize = 0) {
166 if (!initSize) {

Callers

nothing calls this directly

Calls 1

SetValueFunction · 0.50

Tested by

no test coverage detected