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

Method FromPod

library/cpp/yt/memory/ref-inl.h:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50template <class T>
51Y_FORCE_INLINE TRef TRef::FromPod(const T& data)
52{
53 static_assert(TTypeTraits<T>::IsPod || (std::is_standard_layout_v<T> && std::is_trivial_v<T>), "T must be a pod-type.");
54 return TRef(&data, sizeof(data));
55}
56
57Y_FORCE_INLINE TStringBuf TRef::ToStringBuf() const
58{

Callers

nothing calls this directly

Calls 2

TMutableRefClass · 0.85
TRefClass · 0.70

Tested by

no test coverage detected