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

Function capacity

util/generic/string.h:365–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 inline size_t capacity() const noexcept {
366#ifdef TSTRING_IS_STD_STRING
367 return Storage_.capacity();
368#else
369 if (S_->IsNull()) {
370 return 0;
371 }
372
373 return S_->capacity();
374#endif
375 }
376
377 TCharType* Detach() Y_LIFETIME_BOUND {
378#ifdef TSTRING_IS_STD_STRING

Callers 3

resize_noallocateMethod · 0.70
check_capacityMethod · 0.50
alloc_first_segMethod · 0.50

Calls 2

capacityMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected