From 090ba4ba0616951142ad5f4df5e406d5c26104f2 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 11 Mar 2025 08:08:40 +0100 Subject: [PATCH] doc: nvm, doxygen v1.13.2 emits wrong warnings here, but it gets the job done too --- src/entt/entity/storage.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 1934f9b7a..0ae07c4d4 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -649,16 +649,7 @@ public: return element_at(base_type::index(entt)); } - /** - * @brief Returns the object assigned to an entity. - * - * @warning - * Attempting to use an entity that doesn't belong to the storage results in - * undefined behavior. - * - * @param entt A valid identifier. - * @return The object assigned to the entity. - */ + /*! @copydoc get */ [[nodiscard]] value_type &get(const entity_type entt) noexcept { return const_cast(std::as_const(*this).get(entt)); }