Browse Source

entity: unspecified deletion policy (for future view optimizations)

Michele Caini 1 year ago
parent
commit
d10eea8db8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/entt/entity/fwd.hpp

+ 3 - 1
src/entt/entity/fwd.hpp

@@ -20,7 +20,9 @@ enum class deletion_policy : std::uint8_t {
     /*! @brief In-place deletion policy. */
     in_place = 1u,
     /*! @brief Swap-only deletion policy. */
-    swap_only = 2u
+    swap_only = 2u,
+    /*! @brief Unspecified deletion policy. */
+    unspecified = swap_and_pop
 };
 
 template<typename Entity = entity, typename = std::allocator<Entity>>