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

Function ResizeUninitialized

util/generic/string.h:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template <class TCharType, class TCharTraits, class TAllocator>
37void ResizeUninitialized(std::basic_string<TCharType, TCharTraits, TAllocator>& s, size_t len) {
38#if defined(_YNDX_LIBCXX_ENABLE_STRING_RESIZE_UNINITIALIZED)
39 s.resize_uninitialized(len);
40#else
41 s.resize(len);
42#endif
43}
44
45#define Y_NOEXCEPT
46

Callers 3

cow_string.hFile · 0.85
ReserveAndResizeFunction · 0.85
DoNextMethod · 0.85

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected