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

Method FromStringImpl

library/cpp/yt/memory/ref.cpp:283–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282template <class TString>
283TSharedRef TSharedRef::FromStringImpl(TString str, TRefCountedTypeCookie tagCookie)
284{
285 auto holder = New<TStringHolder<TString>>(std::move(str), tagCookie);
286 auto ref = TRef::FromString(holder->String());
287 return TSharedRef(ref, std::move(holder));
288}
289
290TSharedRef TSharedRef::FromString(const char* str)
291{

Callers

nothing calls this directly

Calls 4

TSharedRefClass · 0.85
moveFunction · 0.50
FromStringFunction · 0.50
StringMethod · 0.45

Tested by

no test coverage detected