aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/pool.h
diff options
context:
space:
mode:
authorAndrey Fomichev <andrey.fomichev@gmail.com>2022-02-10 16:49:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:15 +0300
commit1c61afbf3db63940d05e6fefa3104b03457788a1 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/memory/pool.h
parente542cc14db4240643a06bb0dde87ecf361f101ab (diff)
downloadydb-1c61afbf3db63940d05e6fefa3104b03457788a1.tar.gz
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/memory/pool.h')
-rw-r--r--util/memory/pool.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/pool.h b/util/memory/pool.h
index 08e724e68e..13c8b6b9ed 100644
--- a/util/memory/pool.h
+++ b/util/memory/pool.h
@@ -75,7 +75,7 @@ private:
inline const char* Data() const noexcept {
return (const char*)(this + 1);
}
-
+
inline char* Data() noexcept {
return (char*)(this + 1);
}
@@ -83,7 +83,7 @@ private:
inline size_t DataSize() const noexcept {
return Cur_ - Data();
}
-
+
inline void ResetChunk() noexcept {
size_t total = DataSize() + Left();
Cur_ = Data();
@@ -94,7 +94,7 @@ private:
char* Cur_;
size_t Left_;
};
-
+
using TChunkList = TIntrusiveList<TChunk>;
public:
@@ -256,9 +256,9 @@ public:
inline void Traverse(TOp& op) const noexcept {
for (TChunkList::TConstIterator i = Chunks_.Begin(); i != Chunks_.End(); ++i) {
op(i->Data(), i->DataSize());
- }
+ }
}
-
+
inline IAllocator* RealAllocator() const noexcept {
return Alloc_;
}