diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:29 +0300 |
commit | f773626848a7c7456803654292e716b83d69cc12 (patch) | |
tree | db052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/generic/xrange.h | |
parent | f43ab775d197d300eb67bd4497632b909cd7c2a5 (diff) | |
download | ydb-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.h | 30 |
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) |