aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/xrange.h
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.ru>2022-02-10 16:46:31 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:31 +0300
commit317da38588b7898a99fd9168571408123350012b (patch)
tree25eebc31526019ad39a6c1b13f492963d97ba439 /util/generic/xrange.h
parent3b2241461d41d41ba1a706b0750c4f0f55c344f6 (diff)
downloadydb-317da38588b7898a99fd9168571408123350012b.tar.gz
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/xrange.h')
-rw-r--r--util/generic/xrange.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/util/generic/xrange.h b/util/generic/xrange.h
index 5fc8c82912..4d9c309001 100644
--- a/util/generic/xrange.h
+++ b/util/generic/xrange.h
@@ -85,12 +85,12 @@ namespace NPrivate {
return TIterator(Value - b);
}
- template <typename IntType>
- TIterator& operator-=(const IntType& b) noexcept {
- Value -= b;
- return *this;
- }
-
+ template <typename IntType>
+ TIterator& operator-=(const IntType& b) noexcept {
+ Value -= b;
+ return *this;
+ }
+
constexpr bool operator<(const TIterator& b) const noexcept {
return Value < b.Value;
}
@@ -175,31 +175,31 @@ namespace NPrivate {
}
constexpr TDiff operator-(const TIterator& b) const noexcept {
- return (Value_ - b.Value_) / Parent_->Step_;
+ return (Value_ - b.Value_) / Parent_->Step_;
}
template <typename IntType>
constexpr TIterator operator+(const IntType& b) const noexcept {
- return TIterator(*this) += b;
+ return TIterator(*this) += b;
}
template <typename IntType>
TIterator& operator+=(const IntType& b) noexcept {
- Value_ += b * Parent_->Step_;
+ Value_ += b * Parent_->Step_;
return *this;
}
template <typename IntType>
constexpr TIterator operator-(const IntType& b) const noexcept {
- return TIterator(*this) -= b;
- }
-
- template <typename IntType>
- TIterator& operator-=(const IntType& b) noexcept {
- Value_ -= b * Parent_->Step_;
- return *this;
+ return TIterator(*this) -= b;
}
+ template <typename IntType>
+ TIterator& operator-=(const IntType& b) noexcept {
+ Value_ -= b * Parent_->Step_;
+ return *this;
+ }
+
private:
T Value_;
const TSteppedXRange* Parent_;