Skip to content

Commit

Permalink
doc: add a note on registry::try_get (skypjack#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
codylico authored and Vennor committed Nov 28, 2020
1 parent 2482301 commit 46e044b
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 46e044b

Please sign in to comment.