aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/xrange.h
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commitf773626848a7c7456803654292e716b83d69cc12 (patch)
treedb052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/generic/xrange.h
parentf43ab775d197d300eb67bd4497632b909cd7c2a5 (diff)
downloadydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/xrange.h')
-rw-r--r--util/generic/xrange.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/util/generic/xrange.h b/util/generic/xrange.h
index 5fc8c82912..6478b1cd22 100644
--- a/util/generic/xrange.h
+++ b/util/generic/xrange.h
@@ -30,14 +30,14 @@ namespace NPrivate {
{
}
- class TIterator {
+ class TIterator {
public:
- using value_type = T;
- using difference_type = TDiff;
- using pointer = const T*;
- using reference = const T&;
- using iterator_category = std::random_access_iterator_tag;
-
+ using value_type = T;
+ using difference_type = TDiff;
+ using pointer = const T*;
+ using reference = const T&;
+ using iterator_category = std::random_access_iterator_tag;
+
constexpr TIterator(T value) noexcept
: Value(value)
{
@@ -135,17 +135,17 @@ namespace NPrivate {
, Step_(step)
, Finish_(CalcRealFinish(Start_, finish, Step_))
{
- static_assert(std::is_integral<T>::value || std::is_pointer<T>::value, "T should be integral type or pointer");
+ static_assert(std::is_integral<T>::value || std::is_pointer<T>::value, "T should be integral type or pointer");
}
- class TIterator {
+ class TIterator {
public:
- using value_type = T;
- using difference_type = TDiff;
- using pointer = const T*;
- using reference = const T&;
- using iterator_category = std::random_access_iterator_tag;
-
+ using value_type = T;
+ using difference_type = TDiff;
+ using pointer = const T*;
+ using reference = const T&;
+ using iterator_category = std::random_access_iterator_tag;
+
constexpr TIterator(T value, const TSteppedXRange& parent) noexcept
: Value_(value)
, Parent_(&parent)