Преглед на файлове

doc: a note about context variables - close #1326

skypjack преди 1 месец
родител
ревизия
6d6ba9b175
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      docs/md/entity.md

+ 4 - 3
docs/md/entity.md

@@ -1035,9 +1035,10 @@ registry.ctx().erase<my_type>();
 registry.ctx().erase<my_type>("my_variable"_hs);
 registry.ctx().erase<my_type>("my_variable"_hs);
 ```
 ```
 
 
-A context variable must be both default constructible and movable. If the
-supplied type does not match that of the variable when using a _name_, the
-operation fails.<br/>
+There are no strict requirements on the type of a context variable, such as that
+it must be constructible or movable by default. However, if the supplied type
+does not match that of the variable when using a _name_, the operation
+fails.<br/>
 For all users who want to use the context but do not want to create elements,
 For all users who want to use the context but do not want to create elements,
 the `contains` and `find` functions are also available:
 the `contains` and `find` functions are also available: