aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/format-inl.h
diff options
context:
space:
mode:
authorrogday <rogday@yandex-team.com>2024-02-16 15:05:56 +0300
committerrogday <rogday@yandex-team.com>2024-02-16 15:20:30 +0300
commita1d74389c95588daa1fea9c092a946b03ab62f94 (patch)
treebf5411a9c1f30f9b2e6f301c2e7e184dfbba6c37 /library/cpp/yt/string/format-inl.h
parentc08d5a04b23772f39ca18c84095673e7ecde8f26 (diff)
downloadydb-a1d74389c95588daa1fea9c092a946b03ab62f94.tar.gz
,Speedup scheduling failures commit
62c4cf20966ac12ba500e1b7f7f048969a8aacca
Diffstat (limited to 'library/cpp/yt/string/format-inl.h')
-rw-r--r--library/cpp/yt/string/format-inl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h
index 85e82b473e..bee888b2f0 100644
--- a/library/cpp/yt/string/format-inl.h
+++ b/library/cpp/yt/string/format-inl.h
@@ -19,6 +19,7 @@
#include <cctype>
#include <optional>
+#include <span>
namespace NYT {
@@ -315,6 +316,16 @@ struct TValueFormatter<std::vector<T, TAllocator>>
}
};
+// std::span
+template <class T, size_t Extent>
+struct TValueFormatter<std::span<T, Extent>>
+{
+ static void Do(TStringBuilderBase* builder, const std::span<T, Extent>& collection, TStringBuf /*format*/)
+ {
+ FormatRange(builder, collection, TDefaultFormatter());
+ }
+};
+
// TCompactVector
template <class T, unsigned N>
struct TValueFormatter<TCompactVector<T, N>>