Преглед изворни кода

doc: note on reverse iterations

Michele Caini пре 3 година
родитељ
комит
c345e7456c
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      docs/md/entity.md

+ 3 - 0
docs/md/entity.md

@@ -2134,6 +2134,9 @@ and components during iterations, nor to have pointer stability.<br/>
   returned. Destroying entities and components is always allowed instead, even
   if not currently iterated, without the risk of invalidating any references.
 
+* In case of reverse iterations, adding or removing elements is not allowed
+  under any circumstances. It could quickly lead to undefined behaviors.
+
 In other terms, iterators are rarely invalidated. Also, component references
 aren't invalidated when a new element is added while they could be invalidated
 upon destruction due to the _swap-and-pop_ policy, unless the type leading the