Sfoglia il codice sorgente

storage: entity storage value_type

Michele Caini 1 anno fa
parent
commit
88889c5a8a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/entt/entity/storage.hpp

+ 2 - 0
src/entt/entity/storage.hpp

@@ -1012,6 +1012,8 @@ public:
     using base_type = basic_sparse_set<Entity, Allocator>;
     using base_type = basic_sparse_set<Entity, Allocator>;
     /*! @brief Element type. */
     /*! @brief Element type. */
     using element_type = Entity;
     using element_type = Entity;
+    /*! @brief Type of the objects assigned to entities. */
+    using value_type = element_type;
     /*! @brief Underlying entity identifier. */
     /*! @brief Underlying entity identifier. */
     using entity_type = Entity;
     using entity_type = Entity;
     /*! @brief Unsigned integer type. */
     /*! @brief Unsigned integer type. */