Skip to content

Commit

Permalink
doc: add a note on registry::try_get (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
codylico committed Oct 23, 2020
1 parent 83eb0de commit 9ab674e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/entt/entity/registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,9 @@ class basic_registry {
* 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.
Expand Down

0 comments on commit 9ab674e

Please sign in to comment.