mirror of
https://github.com/Z3Prover/z3
synced 2026-05-02 08:33:45 +00:00
Use noexcept more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
|
@ -97,7 +97,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
ref & operator=(ref &&r) {
|
||||
ref & operator=(ref &&r) noexcept {
|
||||
if (this != &r) {
|
||||
dec_ref ();
|
||||
m_ptr = r.detach ();
|
||||
|
|
@ -123,7 +123,7 @@ public:
|
|||
friend bool operator!=(const ref & r1, const ref & r2) {
|
||||
return r1.m_ptr != r2.m_ptr;
|
||||
}
|
||||
friend void swap (ref &r1, ref &r2) {
|
||||
friend void swap (ref &r1, ref &r2) noexcept {
|
||||
T* tmp = r1.m_ptr;
|
||||
r1.m_ptr = r2.m_ptr;
|
||||
r2.m_ptr = tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue