Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_TEST
Function · 0.45
Calls
3
size
Function · 0.50
Destroy
Function · 0.50
resize
Function · 0.50
Tested by
no test coverage detected