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

Method Resize

util/draft/holder_vector.h:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void Resize(size_t newSize) {
77 for (size_t i = newSize; i < size(); ++i) {
78 D::Destroy((*this)[i]);
79 }
80 TBase::resize(newSize);
81 }
82
83 void Swap(THolderVector& other) {
84 TBase::swap(other);

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 3

sizeFunction · 0.50
DestroyFunction · 0.50
resizeFunction · 0.50

Tested by

no test coverage detected