| 336 | |
| 337 | template <class T> |
| 338 | std::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 | |
| 352 | template <class T> |
| 353 | constexpr T TEnumTraits<T, true>::FromString(TStringBuf literal) |
nothing calls this directly
no test coverage detected