aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/holder.h
diff options
context:
space:
mode:
authorspacelord <spacelord@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commit16747e4f77455cca4932df21eb76f12cb0a97a5c (patch)
tree4dd6da4102d99d0d69dec53c1050d290a850a9f2 /util/stream/holder.h
parenta817f5de12611ec73085eba17f8ec7740a46bdb7 (diff)
downloadydb-16747e4f77455cca4932df21eb76f12cb0a97a5c.tar.gz
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/holder.h')
-rw-r--r--util/stream/holder.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/stream/holder.h b/util/stream/holder.h
index c60a4e510c..f8df838b19 100644
--- a/util/stream/holder.h
+++ b/util/stream/holder.h
@@ -1,13 +1,13 @@
-#pragma once
-
-#include <util/generic/ptr.h>
+#pragma once
+
+#include <util/generic/ptr.h>
#include <utility>
#include <type_traits>
-
+
class IInputStream;
class IOutputStream;
-
+
namespace NPrivate {
template <class Stream, bool isInput = std::is_base_of<IInputStream, Stream>::value>
struct TStreamBase {
@@ -34,11 +34,11 @@ namespace NPrivate {
*/
template <class Base, class StreamBase = typename ::NPrivate::TStreamBase<Base>::TType>
class THoldingStream: private THolder<StreamBase>, public Base {
-public:
+public:
template <class... Args>
inline THoldingStream(THolder<StreamBase> stream, Args&&... args)
: THolder<StreamBase>(std::move(stream))
, Base(this->Get(), std::forward<Args>(args)...)
- {
- }
-};
+ {
+ }
+};