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

Method crop

util/generic/vector.h:128–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 inline void crop(size_type size) {
129 if (this->size() > size) {
130 this->erase(this->begin() + size, this->end());
131 }
132 }
133};

Callers 3

SelectValuesFunction · 0.80
SelectStringsFunction · 0.80
TestCropMethod · 0.80

Calls 4

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TestCropMethod · 0.64