diff options
author | Alexey Bykov <alexei4203@yandex.ru> | 2022-02-10 16:47:16 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:16 +0300 |
commit | 4cadece7a57ab767e762a0bea1995a596aefeb11 (patch) | |
tree | 7649c16cf4b52e994709f6c9e1716c993ca28759 /library/cpp/containers/flat_hash/lib/containers.h | |
parent | 143876304996506751ade0b80b3c47f188b9834f (diff) | |
download | ydb-4cadece7a57ab767e762a0bea1995a596aefeb11.tar.gz |
Restoring authorship annotation for Alexey Bykov <alexei4203@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/flat_hash/lib/containers.h')
-rw-r--r-- | library/cpp/containers/flat_hash/lib/containers.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/containers/flat_hash/lib/containers.h b/library/cpp/containers/flat_hash/lib/containers.h index 82008f2f9c..5b9edeaa87 100644 --- a/library/cpp/containers/flat_hash/lib/containers.h +++ b/library/cpp/containers/flat_hash/lib/containers.h @@ -40,23 +40,23 @@ private: TCage(TCage&&) = default; TCage& operator=(const TCage& rhs) { - switch (rhs.Status_) { - case NS_TAKEN: - if constexpr (std::is_copy_assignable_v<value_type>) { - Value_ = rhs.Value_; - } else { - Value_.emplace(rhs.Value()); - } - break; - case NS_EMPTY: - case NS_DELETED: - if (Value_.has_value()) { - Value_.reset(); - } - break; - default: - Y_VERIFY(false, "Not implemented"); - } + switch (rhs.Status_) { + case NS_TAKEN: + if constexpr (std::is_copy_assignable_v<value_type>) { + Value_ = rhs.Value_; + } else { + Value_.emplace(rhs.Value()); + } + break; + case NS_EMPTY: + case NS_DELETED: + if (Value_.has_value()) { + Value_.reset(); + } + break; + default: + Y_VERIFY(false, "Not implemented"); + } Status_ = rhs.Status_; return *this; } |