mirror of
https://github.com/Z3Prover/z3
synced 2026-05-17 07:29:28 +00:00
move, dont copy
This commit is contained in:
parent
cf18a764f3
commit
a1d484c4a8
2 changed files with 7 additions and 4 deletions
|
|
@ -636,6 +636,13 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
core_hashtable& operator=(core_hashtable && other) {
|
||||
if (this == &other) return *this;
|
||||
delete_table();
|
||||
std::swap(*this, other);
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef Z3DEBUG
|
||||
bool check_invariant() {
|
||||
// The capacity must always be a power of two.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue