[util] Out for std::string_view.
#include <cerrno>
#include <string>
+#include <string_view>
#include <cstdio>
#if defined(_win_)
@@ -78,6 +79,11 @@ void Out<std::string>(IOutputStream& o, const std::string& p) {
o.Write(p.data(), p.length());
}
+template <>
+void Out<std::string_view>(IOutputStream& o, const std::string_view& p) {
+ o.Write(p.data(), p.length());
+}
+
template <>
void Out<TFixedString<char>>(IOutputStream& o, const TFixedString<char>& p) {
o.Write(p.Start, p.Length);
