3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-15 05:15:41 +00:00

Use noexcept more. (#7058)

This commit is contained in:
Bruce Mitchener 2023-12-16 19:14:53 +07:00 committed by GitHub
parent b44ab2f620
commit 50e0fd3ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 97 additions and 112 deletions

View file

@ -40,10 +40,10 @@ public:
mpbq(int v, unsigned k):m_num(v), m_k(k) {}
mpz const & numerator() const { return m_num; }
unsigned k() const { return m_k; }
void swap(mpbq & other) { m_num.swap(other.m_num); std::swap(m_k, other.m_k); }
void swap(mpbq & other) noexcept { m_num.swap(other.m_num); std::swap(m_k, other.m_k); }
};
inline void swap(mpbq & m1, mpbq & m2) { m1.swap(m2); }
inline void swap(mpbq & m1, mpbq & m2) noexcept { m1.swap(m2); }
typedef svector<mpbq> mpbq_vector;
@ -72,7 +72,7 @@ public:
mpbq_manager(unsynch_mpz_manager & m);
~mpbq_manager();
static void swap(mpbq & a, mpbq & b) { a.swap(b); }
static void swap(mpbq & a, mpbq & b) noexcept { a.swap(b); }
void del(mpbq & a) { m_manager.del(a.m_num); }
void reset(mpbq & a) { m_manager.reset(a.m_num); a.m_k = 0; }