aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ptr.h
diff options
context:
space:
mode:
authormonnoroch <monnoroch@yandex-team.ru>2022-02-10 16:50:35 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:35 +0300
commit1377125eb4f4636322403fcf4c5e197559a72c1a (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/ptr.h
parentff230fa56fa52d83a67896163c937c432faabff1 (diff)
downloadydb-1377125eb4f4636322403fcf4c5e197559a72c1a.tar.gz
Restoring authorship annotation for <monnoroch@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ptr.h')
-rw-r--r--util/generic/ptr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/ptr.h b/util/generic/ptr.h
index e3aa3dacff..19db0e3ec5 100644
--- a/util/generic/ptr.h
+++ b/util/generic/ptr.h
@@ -101,7 +101,7 @@ private:
template <class Base, class T>
class TPointerCommon {
public:
- using TValueType = T;
+ using TValueType = T;
inline T* operator->() const noexcept {
T* ptr = AsT();
@@ -269,9 +269,9 @@ public:
{
}
- THolder(const THolder&) = delete;
- THolder& operator=(const THolder&) = delete;
-
+ THolder(const THolder&) = delete;
+ THolder& operator=(const THolder&) = delete;
+
inline ~THolder() {
DoDestroy();
}
@@ -1057,7 +1057,7 @@ private:
// Copy-on-write pointer
template <class TPtr, class TCopy>
class TCowPtr: public TPointerBase<TCowPtr<TPtr, TCopy>, const typename TPtr::TValueType> {
- using T = typename TPtr::TValueType;
+ using T = typename TPtr::TValueType;
public:
inline TCowPtr() = default;