aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/stream
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r--util/stream/input.h2
-rw-r--r--util/stream/output.cpp32
-rw-r--r--util/stream/tokenizer.h2
3 files changed, 18 insertions, 18 deletions
diff --git a/util/stream/input.h b/util/stream/input.h
index 05fcab4a44..f0d5807ed2 100644
--- a/util/stream/input.h
+++ b/util/stream/input.h
@@ -1,6 +1,6 @@
#pragma once
-#include <util/generic/fwd.h>
+#include <util/generic/fwd.h>
#include <util/generic/noncopyable.h>
#include <util/system/defaults.h>
diff --git a/util/stream/output.cpp b/util/stream/output.cpp
index 9cd1f4b092..db81b81b70 100644
--- a/util/stream/output.cpp
+++ b/util/stream/output.cpp
@@ -117,19 +117,19 @@ void Out<std::u32string_view>(IOutputStream& o, const std::u32string_view& p) {
template <>
void Out<TStringBuf>(IOutputStream& o, const TStringBuf& p) {
o.Write(p.data(), p.length());
-}
-
-template <>
+}
+
+template <>
void Out<TWtringBuf>(IOutputStream& o, const TWtringBuf& p) {
WriteString(o, p.data(), p.length());
-}
-
-template <>
+}
+
+template <>
void Out<TUtf32StringBuf>(IOutputStream& o, const TUtf32StringBuf& p) {
WriteString(o, p.data(), p.length());
-}
-
-template <>
+}
+
+template <>
void Out<const wchar16*>(IOutputStream& o, const wchar16* w) {
if (w) {
WriteString(o, w, std::char_traits<wchar16>::length(w));
@@ -201,14 +201,14 @@ DEF_CONV_NUM(float, 512)
DEF_CONV_NUM(double, 512)
DEF_CONV_NUM(long double, 512)
-#if !defined(_YNDX_LIBCXX_ENABLE_VECTOR_BOOL_COMPRESSION) || (_YNDX_LIBCXX_ENABLE_VECTOR_BOOL_COMPRESSION == 1)
-// TODO: acknowledge std::bitset::reference for both libc++ and libstdc++
+#if !defined(_YNDX_LIBCXX_ENABLE_VECTOR_BOOL_COMPRESSION) || (_YNDX_LIBCXX_ENABLE_VECTOR_BOOL_COMPRESSION == 1)
+// TODO: acknowledge std::bitset::reference for both libc++ and libstdc++
template <>
-void Out<typename std::vector<bool>::reference>(IOutputStream& o, const std::vector<bool>::reference& bit) {
- return Out<bool>(o, static_cast<bool>(bit));
-}
-#endif
-
+void Out<typename std::vector<bool>::reference>(IOutputStream& o, const std::vector<bool>::reference& bit) {
+ return Out<bool>(o, static_cast<bool>(bit));
+}
+#endif
+
#ifndef TSTRING_IS_STD_STRING
template <>
void Out<TBasicCharRef<TString>>(IOutputStream& o, const TBasicCharRef<TString>& c) {
diff --git a/util/stream/tokenizer.h b/util/stream/tokenizer.h
index b8290038fa..b2398efdd1 100644
--- a/util/stream/tokenizer.h
+++ b/util/stream/tokenizer.h
@@ -190,7 +190,7 @@ private:
inline void CheckBuf() const {
if (!Buf_.Data()) {
- throw std::bad_alloc();
+ throw std::bad_alloc();
}
}