aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/adaptor.h
diff options
context:
space:
mode:
authorpechatnov <pechatnov@yandex-team.ru>2022-02-10 16:48:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:57 +0300
commit8e9b2f8bbf4a2320f539eef5b85555f42c065425 (patch)
tree189a13fe5128c85492e45518171a532ffa90ba03 /util/generic/adaptor.h
parent92040fb3ad117c48c87d591bf9fe916ffda61233 (diff)
downloadydb-8e9b2f8bbf4a2320f539eef5b85555f42c065425.tar.gz
Restoring authorship annotation for <pechatnov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/adaptor.h')
-rw-r--r--util/generic/adaptor.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/util/generic/adaptor.h b/util/generic/adaptor.h
index b88a65fc81..b89c1f81e5 100644
--- a/util/generic/adaptor.h
+++ b/util/generic/adaptor.h
@@ -1,6 +1,6 @@
#pragma once
-#include "store_policy.h"
+#include "store_policy.h"
#include "typetraits.h"
namespace NPrivate {
@@ -42,23 +42,23 @@ namespace NPrivate {
using TBase::Base;
using TBase::TBase;
- auto begin() const {
+ auto begin() const {
return Base().rbegin();
}
- auto end() const {
+ auto end() const {
return Base().rend();
- }
-
- auto begin() {
+ }
+
+ auto begin() {
return Base().rbegin();
- }
-
- auto end() {
+ }
+
+ auto end() {
return Base().rend();
- }
- };
-
+ }
+ };
+
template <class Range>
class TReverseRangeBase<Range, false>: public TReverseRangeStorage<Range> {
using TBase = TReverseRangeStorage<Range>;
@@ -68,26 +68,26 @@ namespace NPrivate {
using TBase::TBase;
auto begin() const {
- using std::end;
+ using std::end;
return std::make_reverse_iterator(end(Base()));
}
auto end() const {
- using std::begin;
+ using std::begin;
return std::make_reverse_iterator(begin(Base()));
}
auto begin() {
- using std::end;
+ using std::end;
return std::make_reverse_iterator(end(Base()));
}
auto end() {
- using std::begin;
+ using std::begin;
return std::make_reverse_iterator(begin(Base()));
}
};
-
+
template <class Range>
class TReverseRange: public TReverseRangeBase<Range> {
using TBase = TReverseRangeBase<Range>;
@@ -95,30 +95,30 @@ namespace NPrivate {
public:
using TBase::Base;
using TBase::TBase;
-
+
TReverseRange(TReverseRange&&) = default;
TReverseRange(const TReverseRange&) = default;
-
- auto rbegin() const {
- using std::begin;
+
+ auto rbegin() const {
+ using std::begin;
return begin(Base());
- }
-
- auto rend() const {
- using std::end;
+ }
+
+ auto rend() const {
+ using std::end;
return end(Base());
- }
-
- auto rbegin() {
- using std::begin;
+ }
+
+ auto rbegin() {
+ using std::begin;
return begin(Base());
- }
-
- auto rend() {
- using std::end;
+ }
+
+ auto rend() {
+ using std::end;
return end(Base());
- }
- };
+ }
+ };
}
/**