aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorakozhikhov <akozhikhov@yandex-team.ru>2022-02-10 16:47:05 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:05 +0300
commitad3b7fa4104e78049fd2bec260715f481f60072b (patch)
tree98b421426aebf65c09fbd3c343705a681867e6ef /library/cpp
parent5577dc406121f6fb3f45b227c01f4251880193a1 (diff)
downloadydb-ad3b7fa4104e78049fd2bec260715f481f60072b.tar.gz
Restoring authorship annotation for <akozhikhov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/ya.make6
-rw-r--r--library/cpp/yt/memory/shared_range.h36
2 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/ya.make b/library/cpp/ya.make
index 8c1193b007..0e49ff1d38 100644
--- a/library/cpp/ya.make
+++ b/library/cpp/ya.make
@@ -92,9 +92,9 @@ RECURSE(
edit_distance/ut
enumbitset
enumbitset/ut
- erasure
- erasure/benchmark
- erasure/ut
+ erasure
+ erasure/benchmark
+ erasure/ut
eventlog
eventlog/dumper
eventlog/dumper/ut
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_;