table: rule of five

This commit is contained in:
Michele Caini
2024-05-24 07:59:54 +02:00
parent d278a0f864
commit 01f851199b

View File

@@ -184,6 +184,9 @@ public:
ENTT_ASSERT((((std::get<Container>(payload).size() * sizeof...(Container)) == (std::get<Container>(payload).size() + ...)) && ...), "Unexpected container size");
}
/*! @brief Default copy constructor, deleted on purpose. */
basic_table(const basic_table &) = delete;
/**
* @brief Move constructor.
* @param other The instance to move from.
@@ -237,6 +240,12 @@ public:
/*! @brief Default destructor. */
~basic_table() noexcept = default;
/**
* @brief Default copy assignment operator, deleted on purpose.
* @return This container.
*/
basic_table &operator=(const basic_table &) = delete;
/**
* @brief Move assignment operator.
* @param other The instance to move from.