sparse_set: make ::policy [[nodiscard]]

This commit is contained in:
Michele Caini
2021-06-28 18:00:40 +02:00
parent d4b59aff97
commit 71e85b44b0

View File

@@ -358,7 +358,7 @@ public:
* @brief Returns the deletion policy of a sparse set.
* @return The deletion policy of the sparse set.
*/
deletion_policy policy() const ENTT_NOEXCEPT {
[[nodiscard]] deletion_policy policy() const ENTT_NOEXCEPT {
return mode;
}