mirror of
https://github.com/Z3Prover/z3
synced 2025-08-05 19:00:25 +00:00
Use noexcept
more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
@ -358,7 +358,7 @@ namespace algebraic_numbers {
|
|||
return a.to_algebraic()->m_p_sz - 1;
|
||||
}
|
||||
|
||||
void swap(numeral & a, numeral & b) {
|
||||
void swap(numeral & a, numeral & b) noexcept {
|
||||
std::swap(a.m_cell, b.m_cell);
|
||||
}
|
||||
|
||||
|
@ -2935,7 +2935,7 @@ namespace algebraic_numbers {
|
|||
return m_imp->to_rational(const_cast<numeral&>(a), r);
|
||||
}
|
||||
|
||||
void manager::swap(numeral & a, numeral & b) {
|
||||
void manager::swap(numeral & a, numeral & b) noexcept {
|
||||
return m_imp->swap(a, b);
|
||||
}
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ namespace algebraic_numbers {
|
|||
void set(numeral & a, mpq const & n);
|
||||
void set(numeral & a, numeral const & n);
|
||||
|
||||
void swap(numeral & a, numeral & b);
|
||||
void swap(numeral & a, numeral & b) noexcept;
|
||||
|
||||
/**
|
||||
\brief Store in b an integer value smaller than 'a'.
|
||||
|
|
|
@ -447,7 +447,7 @@ namespace polynomial {
|
|||
}
|
||||
};
|
||||
|
||||
inline void swap(monomial * & m1, monomial * & m2) { std::swap(m1, m2); }
|
||||
inline void swap(monomial * & m1, monomial * & m2) noexcept { std::swap(m1, m2); }
|
||||
|
||||
typedef chashtable<monomial*, monomial::hash_proc, monomial::eq_proc> monomial_table;
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ namespace upolynomial {
|
|||
m_factors[i].swap(p);
|
||||
}
|
||||
|
||||
void core_manager::factors::swap(factors & other) {
|
||||
void core_manager::factors::swap(factors & other) noexcept {
|
||||
m_factors.swap(other.m_factors);
|
||||
m_degrees.swap(other.m_degrees);
|
||||
nm().swap(m_constant, other.m_constant);
|
||||
|
|
|
@ -89,7 +89,7 @@ namespace upolynomial {
|
|||
void push_back_swap(numeral_vector & p, unsigned degree);
|
||||
|
||||
void swap_factor(unsigned i, numeral_vector & p);
|
||||
void swap(factors & other);
|
||||
void swap(factors & other) noexcept;
|
||||
void multiply(numeral_vector & out) const;
|
||||
|
||||
void display(std::ostream & out) const;
|
||||
|
|
|
@ -85,7 +85,7 @@ namespace upolynomial {
|
|||
|
||||
unsigned max_degree() const { return m_set.size() - 1; }
|
||||
|
||||
void swap(factorization_degree_set & other) {
|
||||
void swap(factorization_degree_set & other) noexcept {
|
||||
m_set.swap(other.m_set);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue