aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/filemap.h
diff options
context:
space:
mode:
authorsomov <somov@yandex-team.ru>2022-02-10 16:45:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:49 +0300
commit7489e4682331202b9c7d863c0898eb83d7b12c2b (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /util/system/filemap.h
parenta5950576e397b1909261050b8c7da16db58f10b1 (diff)
downloadydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r--util/system/filemap.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h
index e28a37da4c..11be64bff4 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);
}