mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Use noexcept
more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
@ -33,7 +33,7 @@ namespace nlsat {
|
|||
public:
|
||||
assignment(anum_manager & _m):m_values(_m) {}
|
||||
anum_manager & am() const { return m_values.m(); }
|
||||
void swap(assignment & other) {
|
||||
void swap(assignment & other) noexcept {
|
||||
m_values.swap(other.m_values);
|
||||
m_assigned.swap(other.m_assigned);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace nlsat {
|
|||
anum_manager & m() const override { return am(); }
|
||||
bool contains(var x) const override { return is_assigned(x); }
|
||||
anum const & operator()(var x) const override { SASSERT(is_assigned(x)); return value(x); }
|
||||
void swap(var x, var y) {
|
||||
void swap(var x, var y) noexcept {
|
||||
SASSERT(x < m_values.size() && y < m_values.size());
|
||||
std::swap(m_assigned[x], m_assigned[y]);
|
||||
std::swap(m_values[x], m_values[y]);
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace nlsat {
|
|||
void append(scoped_literal_vector const& ls) {
|
||||
append(ls.size(), ls.data());
|
||||
}
|
||||
void swap(scoped_literal_vector& other) {
|
||||
void swap(scoped_literal_vector& other) noexcept {
|
||||
SASSERT(&m_solver == &other.m_solver);
|
||||
m_lits.swap(other.m_lits);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace nlsat {
|
|||
typedef chashtable<root_atom*, root_atom::hash_proc, root_atom::eq_proc> root_atom_table;
|
||||
|
||||
// for apply_permutation procedure
|
||||
void swap(clause * & c1, clause * & c2) {
|
||||
void swap(clause * & c1, clause * & c2) noexcept {
|
||||
std::swap(c1, c2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue