aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/iterator_range.h
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/generic/iterator_range.h
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/iterator_range.h')
-rw-r--r--util/generic/iterator_range.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/iterator_range.h b/util/generic/iterator_range.h
index 9f4d02da29..d89eaf7559 100644
--- a/util/generic/iterator_range.h
+++ b/util/generic/iterator_range.h
@@ -1,7 +1,7 @@
#pragma once
-#include <util/system/yassert.h>
-
+#include <util/system/yassert.h>
+
#include <iterator>
#include <utility>
@@ -43,10 +43,10 @@ class TIteratorRange<TIterator, TIterator> {
public:
using iterator = TIterator;
using const_iterator = TIterator;
- using value_type = typename std::iterator_traits<iterator>::value_type;
- using reference = typename std::iterator_traits<iterator>::reference;
- using const_reference = typename std::iterator_traits<const_iterator>::reference;
- using difference_type = typename std::iterator_traits<iterator>::difference_type;
+ using value_type = typename std::iterator_traits<iterator>::value_type;
+ using reference = typename std::iterator_traits<iterator>::reference;
+ using const_reference = typename std::iterator_traits<const_iterator>::reference;
+ using difference_type = typename std::iterator_traits<iterator>::difference_type;
using size_type = std::size_t;
TIteratorRange()
@@ -74,15 +74,15 @@ public:
}
size_type size() const {
- return End_ - Begin_;
- }
-
- reference operator[](size_t at) const {
- Y_ASSERT(at < size());
-
- return *(Begin_ + at);
+ return End_ - Begin_;
}
+ reference operator[](size_t at) const {
+ Y_ASSERT(at < size());
+
+ return *(Begin_ + at);
+ }
+
private:
TIterator Begin_;
TIterator End_;