diff options
| author | denisostashov <[email protected]> | 2024-09-27 14:01:35 +0300 |
|---|---|---|
| committer | denisostashov <[email protected]> | 2024-09-27 14:13:40 +0300 |
| commit | 51f989c35f7d6f18bee97cccbd7cbb838f46845e (patch) | |
| tree | acb59758564dc7e8a5eff3f2aa74b5e5579ee5be | |
| parent | 5dccdd1e4ecdd05ceba4d58db5b91ad7116a1ddd (diff) | |
[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 008ac104fb8..f9ecb6007fd 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_); |
