diff options
author | dprokoptsev <dprokoptsev@yandex-team.ru> | 2022-02-10 16:50:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:05 +0300 |
commit | 94e596fdab09d4aeb51a3d27767959d8ed030a3d (patch) | |
tree | 9efd85ff3b6369cf556bfb78b67b233e11d02ff6 /util/memory | |
parent | 64407caacb4d68aeabc6afe1ddd28750bf7522f4 (diff) | |
download | ydb-94e596fdab09d4aeb51a3d27767959d8ed030a3d.tar.gz |
Restoring authorship annotation for <dprokoptsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r-- | util/memory/segmented_string_pool.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/segmented_string_pool.h b/util/memory/segmented_string_pool.h index a40aa408f5..03b6b5d11e 100644 --- a/util/memory/segmented_string_pool.h +++ b/util/memory/segmented_string_pool.h @@ -98,12 +98,12 @@ public: size_t get_segment_size() const { return segment_size; } - bool contains(const T* ptr) const { - for (seg_const_iterator i = segs.begin(), ie = segs.end(); i != ie; ++i) + bool contains(const T* ptr) const { + for (seg_const_iterator i = segs.begin(), ie = segs.end(); i != ie; ++i) if ((char*)ptr >= (char*)i->data && (char*)ptr < (char*)i->data + i->freepos) - return true; - return false; - } + return true; + return false; + } size_t size() const { size_t r = 0; for (seg_const_iterator i = segs.begin(); i != segs.end(); ++i) |