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

Method Reset

util/draft/holder_vector.h:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void Reset(size_t i, THolder<T> t) {
55 T* current = (*this)[i];
56 if (current) {
57 Y_ASSERT(current != t.Get());
58 D::Destroy(current);
59 }
60 (*this)[i] = t.Release();
61 }
62
63 void PopBack() {
64 if (size()) {

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 3

DestroyFunction · 0.50
GetMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected