cpp-btree: Update to match upstream

Add noexcept to swap-based move constructors and copy/move assignment operator
This commit is contained in:
Jonathan G Rennison
2019-09-29 12:03:12 +01:00
parent 7690fe8572
commit 9176d9a284
4 changed files with 12 additions and 12 deletions

View File

@@ -59,13 +59,13 @@ class btree_set : public btree_unique_container<
}
// Move constructor.
btree_set(self_type &&x)
btree_set(self_type &&x) noexcept
: super_type() {
this->swap(x);
}
// Copy/move assignment
self_type& operator=(self_type x) {
self_type& operator=(self_type x) noexcept {
this->swap(x);
return *this;
}
@@ -114,13 +114,13 @@ class btree_multiset : public btree_multi_container<
}
// Move constructor.
btree_multiset(self_type &&x)
btree_multiset(self_type &&x) noexcept
: super_type() {
this->swap(x);
}
// Copy/move assignment
self_type& operator=(self_type x) {
self_type& operator=(self_type x) noexcept {
this->swap(x);
return *this;
}