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

Method yresize

util/generic/vector.h:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 void yresize(size_type newSize) {
119#if defined(_YNDX_LIBCXX_ENABLE_VECTOR_POD_RESIZE_UNINITIALIZED) && !defined(__CUDACC__)
120 if constexpr (std::is_standard_layout_v<T> && std::is_trivial_v<T>) {
121 TBase::resize_uninitialized(newSize);
122 return;
123 }
124#endif
125 TBase::resize(newSize);
126 }
127
128 inline void crop(size_type size) {
129 if (this->size() > size) {

Callers 15

ReadYArrFunction · 0.80
ReadShmFunction · 0.80
ReadYArrFunction · 0.80
PushBackToContRegionMethod · 0.80
BuildBucketsFunction · 0.80
AddParamMethod · 0.80
GetParamMethod · 0.80
ClearPodArrayMethod · 0.80
QuickLZCompressFunction · 0.80
QuickLZDecompressFunction · 0.80
ReadShmFunction · 0.80
WriteImplMethod · 0.80

Calls 1

resizeFunction · 0.50

Tested by 15

TestNdcgFunction · 0.64
SimpleTextModelFunction · 0.64
TestOneCaseFunction · 0.64
Y_UNIT_TESTFunction · 0.64
MakeDcgDecaysFunction · 0.64
MakeDcgExponentialDecaysFunction · 0.64
FuseUi32AndFloatIntoUi64Function · 0.64
SortFunction · 0.64
CalculateIdcgFunction · 0.64
CalculateDcgFunction · 0.64