diff options
author | elviandante <elviandante@yandex-team.ru> | 2022-02-10 16:49:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:47 +0300 |
commit | 643ddee8bd6125a18c4b1506c35bee857f64f4d2 (patch) | |
tree | 9b6a77d0a7c57a5e85a0ed2744f2a54ba1a46d9f /util/memory/pool.h | |
parent | 767f05356832cfac686778897626e124d257dbc8 (diff) | |
download | ydb-643ddee8bd6125a18c4b1506c35bee857f64f4d2.tar.gz |
Restoring authorship annotation for <elviandante@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory/pool.h')
-rw-r--r-- | util/memory/pool.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/memory/pool.h b/util/memory/pool.h index 13c8b6b9ed..9d3ca1f6f8 100644 --- a/util/memory/pool.h +++ b/util/memory/pool.h @@ -201,19 +201,19 @@ public: for (T *ptr = arr, *end = arr + count; ptr != end; ++ptr) { new (ptr) T; } - + return arr; } - + template <typename TChar> inline TChar* Append(const TChar* str) { return Append(str, std::char_traits<TChar>::length(str) + 1); // include terminating zero byte } - + template <typename TChar> inline TChar* Append(const TChar* str, size_t len) { TChar* ret = AllocateArray<TChar>(len); - + std::char_traits<TChar>::copy(ret, str, len); return ret; } |