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

Method ToString

library/cpp/yt/misc/enum-inl.h:338–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337template <class T>
338std::string TEnumTraits<T, true>::ToString(T value)
339{
340 using ::ToString;
341 if (auto optionalLiteral = TEnumTraits<T>::FindLiteralByValue(value)) {
342 return ToString(*optionalLiteral);
343 }
344 std::string result;
345 result = TEnumTraits<T>::GetTypeName();
346 result += "(";
347 result += ToString(ToUnderlying(value));
348 result += ")";
349 return result;
350}
351
352template <class T>
353constexpr T TEnumTraits<T, true>::FromString(TStringBuf literal)

Callers

nothing calls this directly

Calls 3

ToUnderlyingFunction · 0.85
ToStringFunction · 0.50
GetTypeNameFunction · 0.50

Tested by

no test coverage detected