Browse Source

registry: added base_type member type

Michele Caini 4 years ago
parent
commit
34f73f8a2b
1 changed files with 2 additions and 0 deletions
  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.