intrusive_list: Specify noexcept on swap implementations
Necessary to fully satisfy the Swappable concept.
This commit is contained in:
parent
5bc9ce544f
commit
8fb857f9da
1 changed files with 2 additions and 2 deletions
|
@ -355,7 +355,7 @@ public:
|
||||||
* Exchanges contents of this list with another list instance.
|
* Exchanges contents of this list with another list instance.
|
||||||
* @param other The other list to swap with.
|
* @param other The other list to swap with.
|
||||||
*/
|
*/
|
||||||
void swap(IntrusiveList& other) {
|
void swap(IntrusiveList& other) noexcept {
|
||||||
root.swap(other.root);
|
root.swap(other.root);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,7 +370,7 @@ private:
|
||||||
* @param rhs The second list.
|
* @param rhs The second list.
|
||||||
*/
|
*/
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void swap(IntrusiveList<T>& lhs, IntrusiveList<T>& rhs) {
|
void swap(IntrusiveList<T>& lhs, IntrusiveList<T>& rhs) noexcept {
|
||||||
lhs.swap(rhs);
|
lhs.swap(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue