Explorar o código

entity: unspecified deletion policy (for future view optimizations)

Michele Caini hai 1 ano
pai
achega
d10eea8db8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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>>