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
commit6170310e8721e225f64ddabf7a7358253d7a1249 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/generic/iterator_range.h
parentcde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff)
downloadydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 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 45db9f055d0..9f4d02da295 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());