aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/addstorage.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/memory/addstorage.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/memory/addstorage.h')
-rw-r--r--util/memory/addstorage.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/memory/addstorage.h b/util/memory/addstorage.h
index 597c73a988..53b12c68bd 100644
--- a/util/memory/addstorage.h
+++ b/util/memory/addstorage.h
@@ -41,15 +41,15 @@ public:
return data;
}
- inline void operator delete(void* ptr) noexcept {
+ inline void operator delete(void* ptr) noexcept {
DoDelete(ptr);
}
- inline void operator delete(void* ptr, size_t) noexcept {
+ inline void operator delete(void* ptr, size_t) noexcept {
DoDelete(ptr);
}
- inline void operator delete(void* ptr, size_t, size_t) noexcept {
+ inline void operator delete(void* ptr, size_t, size_t) noexcept {
/*
* this delete operator can be called automagically by compiler
*/
@@ -57,20 +57,20 @@ public:
DoDelete(ptr);
}
- inline void* AdditionalData() const noexcept {
+ inline void* AdditionalData() const noexcept {
return (char*)(static_cast<const T*>(this)) + CombinedSizeOfInstanceWithTInfo();
}
- static inline T* ObjectFromData(void* data) noexcept {
+ static inline T* ObjectFromData(void* data) noexcept {
return reinterpret_cast<T*>(static_cast<char*>(data) - CombinedSizeOfInstanceWithTInfo());
}
- inline size_t AdditionalDataLength() const noexcept {
+ inline size_t AdditionalDataLength() const noexcept {
return InfoPtr(static_cast<const T*>(this))->Length();
}
private:
- static inline void DoDelete(void* ptr) noexcept {
+ static inline void DoDelete(void* ptr) noexcept {
TInfo* info = InfoPtr(static_cast<T*>(ptr));
info->~TInfo();
::operator delete(ptr);