aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/iterator_range.h
diff options
context:
space:
mode:
authorstanly <stanly@yandex-team.ru>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:49 +0300
commitcde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch)
treed3349caea4095825a55b5ba24fe758067b29ce6f /util/generic/iterator_range.h
parent9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff)
downloadydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/iterator_range.h')
-rw-r--r--util/generic/iterator_range.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/iterator_range.h b/util/generic/iterator_range.h
index 9f4d02da29..45db9f055d 100644
--- a/util/generic/iterator_range.h
+++ b/util/generic/iterator_range.h
@@ -49,9 +49,9 @@ public:
using difference_type = typename std::iterator_traits<iterator>::difference_type;
using size_type = std::size_t;
- TIteratorRange()
- : Begin_()
- , End_()
+ TIteratorRange()
+ : Begin_()
+ , End_()
{
}
@@ -70,13 +70,13 @@ public:
}
Y_PURE_FUNCTION bool empty() const {
- return Begin_ == End_;
- }
-
- size_type size() const {
+ return Begin_ == End_;
+ }
+
+ size_type size() const {
return End_ - Begin_;
- }
-
+ }
+
reference operator[](size_t at) const {
Y_ASSERT(at < size());