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

Method Destroy

util/system/filemap.h:357–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 return arr;
356 }
357 void Destroy() {
358 T* arr = (T*)Ptr();
359 if (arr) {
360 for (size_t n = 0; n < size(); n++) {
361 arr[n].~T();
362 }
363 Dealloc();
364 }
365 }
366 T& operator[](size_t pos) {
367 Y_ASSERT(pos < size());
368 return ((T*)Ptr())[pos];

Callers 6

ProcessMethod · 0.45
TermMethod · 0.45
SetDummyMethod · 0.45
JoinMethod · 0.45
DetachMethod · 0.45
CloseMethod · 0.45

Calls 2

~TMethod · 0.80
sizeFunction · 0.50

Tested by

no test coverage detected