Parcourir la source

registry: added base_type member type

Michele Caini il y a 4 ans
Parent
commit
34f73f8a2b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/entt/entity/registry.hpp

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

@@ -144,6 +144,8 @@ public:
     using version_type = typename entity_traits::version_type;
     /*! @brief Unsigned integer type. */
     using size_type = std::size_t;
+    /*! @brief Common type among all storage types. */
+    using base_type = basic_common_type;
 
     /**
      * @brief Storage type associated with a given component.