diff options
author | babenko <babenko@yandex-team.com> | 2024-01-27 16:19:45 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2024-01-27 16:42:19 +0300 |
commit | bbacc05ccfcee10c65bc0c3da9bb2d266ec41833 (patch) | |
tree | 32b0f60354641ae6c917623f1cd6256a3ce088ed /library/cpp/yt/string/format-inl.h | |
parent | 6e1358a430ae27360d66469823eb84f18a5342c3 (diff) | |
download | ydb-bbacc05ccfcee10c65bc0c3da9bb2d266ec41833.tar.gz |
Drop TEnumIndexedVector
Diffstat (limited to 'library/cpp/yt/string/format-inl.h')
-rw-r--r-- | library/cpp/yt/string/format-inl.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h index c198fdcd65..776b48e7fb 100644 --- a/library/cpp/yt/string/format-inl.h +++ b/library/cpp/yt/string/format-inl.h @@ -415,27 +415,6 @@ struct TValueFormatter<TEnumIndexedArray<E, T>> } }; -// TEnumIndexedVector -template <class E, class T> -struct TValueFormatter<TEnumIndexedVector<E, T>> -{ - static void Do(TStringBuilderBase* builder, const TEnumIndexedVector<E, T>& collection, TStringBuf format) - { - builder->AppendChar('{'); - bool firstItem = true; - for (const auto& index : TEnumTraits<E>::GetDomainValues()) { - if (!firstItem) { - builder->AppendString(DefaultJoinToStringDelimiter); - } - FormatValue(builder, index, format); - builder->AppendString(": "); - FormatValue(builder, collection[index], format); - firstItem = false; - } - builder->AppendChar('}'); - } -}; - // std::pair template <class T1, class T2> struct TValueFormatter<std::pair<T1, T2>> |