summaryrefslogtreecommitdiffstats
path: root/util/generic/ptr.h
diff options
context:
space:
mode:
authorermolovd <[email protected]>2022-02-10 16:47:53 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:53 +0300
commitb91bcef7c99a119b0846479ef71bfab4beec72ca (patch)
treebe118d54d12a61bc4812ceb0a266a170a2fa3bc9 /util/generic/ptr.h
parentf421873774cf0b71743afbe5f6677861e66601ea (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr.h')
-rw-r--r--util/generic/ptr.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/util/generic/ptr.h b/util/generic/ptr.h
index 19db0e3ec55..fa15f3a3786 100644
--- a/util/generic/ptr.h
+++ b/util/generic/ptr.h
@@ -4,7 +4,7 @@
#include "utility.h"
#include "intrlist.h"
#include "refcount.h"
-#include "typetraits.h"
+#include "typetraits.h"
#include "singleton.h"
#include <utility>
@@ -508,22 +508,22 @@ public:
Ref();
}
- // NOTE:
+ // NOTE:
// without std::enable_if_t compiler sometimes tries to use this constructor inappropriately
- // e.g.
- // struct A {};
- // struct B {};
- // void Func(TIntrusivePtr<A>);
- // void Func(TIntrusivePtr<B>);
- // ...
- // Func(TIntrusivePtr<A>(new A)); // <--- compiler can't decide which version of Func to use
+ // e.g.
+ // struct A {};
+ // struct B {};
+ // void Func(TIntrusivePtr<A>);
+ // void Func(TIntrusivePtr<B>);
+ // ...
+ // Func(TIntrusivePtr<A>(new A)); // <--- compiler can't decide which version of Func to use
template <class U, class = TGuardConversion<T, U>>
inline TIntrusivePtr(const TIntrusivePtr<U>& p) noexcept
- : T_(p.Get())
- {
- Ref();
- }
-
+ : T_(p.Get())
+ {
+ Ref();
+ }
+
template <class U, class = TGuardConversion<T, U>>
inline TIntrusivePtr(TIntrusivePtr<U>&& p) noexcept
: T_(p.T_)
@@ -645,11 +645,11 @@ public:
template <class U, class = TGuardConversion<T, U>>
inline TIntrusiveConstPtr(const TIntrusiveConstPtr<U>& p) noexcept
- : T_(p.T_)
- {
- Ref();
- }
-
+ : T_(p.T_)
+ {
+ Ref();
+ }
+
template <class U, class = TGuardConversion<T, U>>
inline TIntrusiveConstPtr(TIntrusiveConstPtr<U>&& p) noexcept
: T_(p.T_)
@@ -711,9 +711,9 @@ private:
private:
T* T_;
-
- template <class U, class O>
- friend class TIntrusiveConstPtr;
+
+ template <class U, class O>
+ friend class TIntrusiveConstPtr;
};
template <class T, class Ops>