diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /util/system/filemap.h | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r-- | util/system/filemap.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h index 11be64bff4..e28a37da4c 100644 --- a/util/system/filemap.h +++ b/util/system/filemap.h @@ -265,11 +265,11 @@ public: } const T* Begin() const noexcept { return Ptr_; - } + } /// for STL compatibility only, End() usage is recommended const T* end() const noexcept { return End_; - } + } const T* End() const noexcept { return End_; } @@ -367,11 +367,11 @@ public: return ((T*)Ptr())[pos]; } T* begin() { - return (T*)Ptr(); - } + return (T*)Ptr(); + } T* end() { - return (T*)((char*)Ptr() + MappedSize()); - } + return (T*)((char*)Ptr() + MappedSize()); + } size_t size() const { return MappedSize() / sizeof(T); } |