entity: noexcept-ness review

This commit is contained in:
Michele Caini
2024-09-17 11:10:16 +02:00
parent 24eed3da7a
commit 9907a84b26
5 changed files with 7 additions and 7 deletions

View File

@@ -204,7 +204,7 @@ public:
* @brief Exchanges the contents with those of a given storage.
* @param other Storage to exchange the content with.
*/
void swap(basic_sigh_mixin &other) {
void swap(basic_sigh_mixin &other) noexcept {
using std::swap;
swap(owner, other.owner);
swap(construction, other.construction);

View File

@@ -385,7 +385,7 @@ public:
* @brief Exchanges the contents with those of a given registry.
* @param other Registry to exchange the content with.
*/
void swap(basic_registry &other) {
void swap(basic_registry &other) noexcept {
using std::swap;
swap(vars, other.vars);

View File

@@ -163,7 +163,7 @@ public:
filter{other.filter, allocator} {}
/*! @brief Default move constructor. */
basic_runtime_view(basic_runtime_view &&) noexcept(std::is_nothrow_move_constructible_v<container_type>) = default;
basic_runtime_view(basic_runtime_view &&) noexcept = default;
/**
* @brief Allocator-extended move constructor.
@@ -187,13 +187,13 @@ public:
* @brief Default move assignment operator.
* @return This runtime view.
*/
basic_runtime_view &operator=(basic_runtime_view &&) noexcept(std::is_nothrow_move_assignable_v<container_type>) = default;
basic_runtime_view &operator=(basic_runtime_view &&) noexcept = default;
/**
* @brief Exchanges the contents with those of a given view.
* @param other View to exchange the content with.
*/
void swap(basic_runtime_view &other) {
void swap(basic_runtime_view &other) noexcept {
using std::swap;
swap(pools, other.pools);
swap(filter, other.filter);

View File

@@ -482,7 +482,7 @@ public:
* @brief Exchanges the contents with those of a given sparse set.
* @param other Sparse set to exchange the content with.
*/
void swap(basic_sparse_set &other) {
void swap(basic_sparse_set &other) noexcept {
using std::swap;
swap(sparse, other.sparse);
swap(packed, other.packed);

View File

@@ -487,7 +487,7 @@ public:
* @brief Exchanges the contents with those of a given storage.
* @param other Storage to exchange the content with.
*/
void swap(basic_storage &other) {
void swap(basic_storage &other) noexcept {
using std::swap;
swap(payload, other.payload);
base_type::swap(other);