Browse Source

doc: add a note on registry::try_get (#576)

codylico 5 years ago
parent
commit
9ab674ef9a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/entt/entity/registry.hpp

+ 3 - 0
src/entt/entity/registry.hpp

@@ -889,6 +889,9 @@ public:
      * An assertion will abort the execution at runtime in debug mode in case of
      * invalid entity.
      *
+     * @note
+     * The registry retains ownership of the pointed-to components.
+     *
      * @tparam Component Types of components to get.
      * @param entity A valid entity identifier.
      * @return Pointers to the components owned by the entity.