3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-09-30 13:19:04 +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

@ -197,14 +197,14 @@ public:
push_back(data[i]);
}
void operator=(ref_vector_core && other) {
void operator=(ref_vector_core && other) noexcept {
if (this != &other) {
reset();
m_nodes = std::move(other.m_nodes);
}
}
void swap(unsigned idx1, unsigned idx2) {
void swap(unsigned idx1, unsigned idx2) noexcept {
std::swap(m_nodes[idx1], m_nodes[idx2]);
}
@ -262,7 +262,7 @@ public:
return get_manager();
}
void swap(ref_vector & other) {
void swap(ref_vector & other) noexcept {
SASSERT(&(this->m_manager) == &(other.m_manager));
this->m_nodes.swap(other.m_nodes);
}