diff options
author | akozhikhov <akozhikhov@yandex-team.ru> | 2022-02-10 16:47:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:05 +0300 |
commit | ad3b7fa4104e78049fd2bec260715f481f60072b (patch) | |
tree | 98b421426aebf65c09fbd3c343705a681867e6ef /library/cpp/yt | |
parent | 5577dc406121f6fb3f45b227c01f4251880193a1 (diff) | |
download | ydb-ad3b7fa4104e78049fd2bec260715f481f60072b.tar.gz |
Restoring authorship annotation for <akozhikhov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt')
-rw-r--r-- | library/cpp/yt/memory/shared_range.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/yt/memory/shared_range.h b/library/cpp/yt/memory/shared_range.h index 9841d7a0df..b22ecc14c0 100644 --- a/library/cpp/yt/memory/shared_range.h +++ b/library/cpp/yt/memory/shared_range.h @@ -21,7 +21,7 @@ class TSharedRange public: using THolderPtr = TRefCountedPtr; - //! Constructs a null TSharedRange. + //! Constructs a null TSharedRange. TSharedRange() { } @@ -90,11 +90,11 @@ public: return Holder_; } - THolderPtr&& ReleaseHolder() - { - return std::move(Holder_); - } - + THolderPtr&& ReleaseHolder() + { + return std::move(Holder_); + } + protected: THolderPtr Holder_; @@ -133,7 +133,7 @@ TSharedRange<T> DoMakeSharedRange(TContainer&& elements, THolders&&... holders) auto range = MakeRange<T>(holder->Elements); - return TSharedRange<T>(range, std::move(holder)); + return TSharedRange<T>(range, std::move(holder)); } //! Constructs a TSharedRange by taking ownership of an std::vector. @@ -163,12 +163,12 @@ TSharedRange<T> MakeSharedRange(TRange<T> range, THolders&&... holders) return TSharedRange<T>(range, MakeCompositeHolder(std::forward<THolders>(holders)...)); } -template <class T, class THolder> -TSharedRange<T> MakeSharedRange(TRange<T> range, TIntrusivePtr<THolder> holder) -{ - return TSharedRange<T>(range, std::move(holder)); -} - +template <class T, class THolder> +TSharedRange<T> MakeSharedRange(TRange<T> range, TIntrusivePtr<THolder> holder) +{ + return TSharedRange<T>(range, std::move(holder)); +} + template <class U, class T> TSharedRange<U> ReinterpretCastRange(const TSharedRange<T>& range) { @@ -256,11 +256,11 @@ public: return Holder_; } - THolderPtr&& ReleaseHolder() - { - return std::move(Holder_); - } - + THolderPtr&& ReleaseHolder() + { + return std::move(Holder_); + } + protected: THolderPtr Holder_; |