diff options
author | denisostashov <denisostashov@yandex-team.com> | 2024-09-27 14:01:35 +0300 |
---|---|---|
committer | denisostashov <denisostashov@yandex-team.com> | 2024-09-27 14:13:40 +0300 |
commit | 51f989c35f7d6f18bee97cccbd7cbb838f46845e (patch) | |
tree | acb59758564dc7e8a5eff3f2aa74b5e5579ee5be | |
parent | 5dccdd1e4ecdd05ceba4d58db5b91ad7116a1ddd (diff) | |
download | ydb-51f989c35f7d6f18bee97cccbd7cbb838f46845e.tar.gz |
[util] Add move assignment operator in TBlob
[util] Add move assignment operator to TBlob
commit_hash:00a4eb013dbf72cbb95bd5df0bb190f693edb166
-rw-r--r-- | util/memory/blob.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h index 008ac104fb..f9ecb6007f 100644 --- a/util/memory/blob.h +++ b/util/memory/blob.h @@ -96,6 +96,12 @@ public: return *this; } + inline TBlob& operator=(TBlob&& r) noexcept { + TBlob(std::move(r)).Swap(*this); + + return *this; + } + /// Swaps content of two data arrays. inline void Swap(TBlob& r) noexcept { S_.Swap(r.S_); |