mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 10:05:32 +00:00
parent
b32f2703d4
commit
e234bede4c
6 changed files with 28 additions and 11 deletions
|
@ -180,6 +180,16 @@ public:
|
|||
void swap(table2map & other) {
|
||||
m_table.swap(other.m_table);
|
||||
}
|
||||
|
||||
bool operator==(table2map const& other) const {
|
||||
if (size() != other.size()) return false;
|
||||
for (auto const& kv : *this) {
|
||||
auto* e = other.find_core(kv.m_key);
|
||||
if (!e) return false;
|
||||
if (e->get_data().m_value != kv.m_value) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef Z3DEBUG
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue