diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/generic/adaptor.h | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/adaptor.h')
-rw-r--r-- | util/generic/adaptor.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/adaptor.h b/util/generic/adaptor.h index ea9aba9331..b88a65fc81 100644 --- a/util/generic/adaptor.h +++ b/util/generic/adaptor.h @@ -4,13 +4,13 @@ #include "typetraits.h" namespace NPrivate { - template <class Range> + template <class Range> class TReverseRangeStorage { public: - TReverseRangeStorage(Range&& range) - : Base_(std::forward<Range>(range)) - { - } + TReverseRangeStorage(Range&& range) + : Base_(std::forward<Range>(range)) + { + } decltype(auto) Base() const { return *Base_.Ptr(); @@ -37,9 +37,9 @@ namespace NPrivate { template <class Range, bool hasReverseIterators = HasReverseIterators<Range>((i32)0, nullptr)> class TReverseRangeBase: public TReverseRangeStorage<Range> { using TBase = TReverseRangeStorage<Range>; - + public: - using TBase::Base; + using TBase::Base; using TBase::TBase; auto begin() const { @@ -62,9 +62,9 @@ namespace NPrivate { template <class Range> class TReverseRangeBase<Range, false>: public TReverseRangeStorage<Range> { using TBase = TReverseRangeStorage<Range>; - + public: - using TBase::Base; + using TBase::Base; using TBase::TBase; auto begin() const { @@ -89,11 +89,11 @@ namespace NPrivate { }; template <class Range> - class TReverseRange: public TReverseRangeBase<Range> { + class TReverseRange: public TReverseRangeBase<Range> { using TBase = TReverseRangeBase<Range>; - + public: - using TBase::Base; + using TBase::Base; using TBase::TBase; TReverseRange(TReverseRange&&) = default; |