Dynare++: mark IntSequence move constructor as noexcept

For better performance where used within containers (e.g. in Smolyak
integration).
mr#2067
Sébastien Villemot 2022-05-19 13:50:37 +02:00
parent 11743eff54
commit 253d1385b4
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/*
* Copyright © 2004 Ondra Kamenik
* Copyright © 2019 Dynare Team
* Copyright © 2019-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -89,7 +89,7 @@ public:
std::copy_n(s.data, length, data);
}
// Move constructor
IntSequence(IntSequence &&s)
IntSequence(IntSequence &&s) noexcept
: data{std::exchange(s.data, nullptr)}, length{std::exchange(s.length, 0)},
destroy{std::exchange(s.destroy, false)}
{