diff options
author | shakurov <shakurov@yandex-team.ru> | 2022-02-10 16:49:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:23 +0300 |
commit | 296627beeba9eb1fbc3cc1ff3dbae3ff192fb2a8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/memory | |
parent | 6750fac04a33847862ab7bfb19145f6f91207be6 (diff) | |
download | ydb-296627beeba9eb1fbc3cc1ff3dbae3ff192fb2a8.tar.gz |
Restoring authorship annotation for <shakurov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/memory')
-rw-r--r-- | library/cpp/yt/memory/range.h | 24 | ||||
-rw-r--r-- | library/cpp/yt/memory/ref.h | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/yt/memory/range.h b/library/cpp/yt/memory/range.h index 079ce3e6acd..6c71aa94965 100644 --- a/library/cpp/yt/memory/range.h +++ b/library/cpp/yt/memory/range.h @@ -367,23 +367,23 @@ public: return const_cast<T*>(this->Data_); } - // STL interop, for gcc. - iterator begin() const - { - return Begin(); - } - + // STL interop, for gcc. + iterator begin() const + { + return Begin(); + } + iterator End() const { return this->Begin() + this->Size(); } - // STL interop, for gcc. - iterator end() const - { - return End(); - } - + // STL interop, for gcc. + iterator end() const + { + return End(); + } + T& operator[](size_t index) { YT_ASSERT(index <= this->Size()); diff --git a/library/cpp/yt/memory/ref.h b/library/cpp/yt/memory/ref.h index 94a215f6ac8..73d19d9013e 100644 --- a/library/cpp/yt/memory/ref.h +++ b/library/cpp/yt/memory/ref.h @@ -94,8 +94,8 @@ public: //! Default tag type for memory blocks allocated via TSharedRef. /*! - * Each newly allocated TSharedRef blob is associated with a tag type - * that appears in ref-counted statistics. + * Each newly allocated TSharedRef blob is associated with a tag type + * that appears in ref-counted statistics. */ struct TDefaultSharedBlobTag { }; |