Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
SelectValues
Function · 0.80
SelectStrings
Function · 0.80
TestCrop
Method · 0.80
Calls
4
size
Method · 0.45
erase
Method · 0.45
begin
Method · 0.45
end
Method · 0.45
Tested by
1
TestCrop
Method · 0.64