aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/input.h
diff options
context:
space:
mode:
authorkimkim <kimkim@yandex-team.ru>2022-02-10 16:49:28 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:28 +0300
commit10807864acf73d00f425a23b442aac2cf34403a8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/stream/input.h
parent13f84424ed9975f6827d9786087c6fe6ea265cda (diff)
downloadydb-10807864acf73d00f425a23b442aac2cf34403a8.tar.gz
Restoring authorship annotation for <kimkim@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/input.h')
-rw-r--r--util/stream/input.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/input.h b/util/stream/input.h
index e7e113d575..f0d5807ed2 100644
--- a/util/stream/input.h
+++ b/util/stream/input.h
@@ -43,7 +43,7 @@ public:
return DoRead(buf, len);
}
-
+
/**
* Reads one character from the stream.
*
@@ -243,9 +243,9 @@ ui64 TransferData(IInputStream* in, IOutputStream* out);
* @throws `yexception` on invalid input or end of stream.
* @see Out(IOutputStream&, T&)
*/
-template <typename T>
+template <typename T>
void In(IInputStream& in, T& value);
-
+
/**
* Reads a value from the stream.
*
@@ -255,12 +255,12 @@ void In(IInputStream& in, T& value);
* @throws `yexception` on invalid input or end of stream.
* @see operator<<(IOutputStream&, T&)
*/
-template <typename T>
+template <typename T>
inline IInputStream& operator>>(IInputStream& in, T& value) {
In<T>(in, value);
- return in;
-}
-
+ return in;
+}
+
namespace NPrivate {
IInputStream& StdInStream() noexcept;
}