diff options
author | acid <acid@yandex-team.ru> | 2022-02-10 16:50:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:48 +0300 |
commit | 135b277c8122a631eadd1af0af8a69ed972fdf7b (patch) | |
tree | 0b1c946d0c519b2dfc6a45d569daeefbf6c293c3 /library/cpp/yt/string/format-inl.h | |
parent | e7c30eecd571c69c5b7395fd66ff676f65f93cc7 (diff) | |
download | ydb-135b277c8122a631eadd1af0af8a69ed972fdf7b.tar.gz |
Restoring authorship annotation for <acid@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/string/format-inl.h')
-rw-r--r-- | library/cpp/yt/string/format-inl.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h index 5484d4a216..e24855e0e2 100644 --- a/library/cpp/yt/string/format-inl.h +++ b/library/cpp/yt/string/format-inl.h @@ -377,27 +377,27 @@ struct TValueFormatter<THashMultiMap<K, V>> } }; -// TEnumIndexedVector +// 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); - } + { + 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('}'); - } -}; - + builder->AppendString(": "); + FormatValue(builder, collection[index], format); + firstItem = false; + } + builder->AppendChar('}'); + } +}; + // std::pair template <class T1, class T2> struct TValueFormatter<std::pair<T1, T2>> |