Explorar o código

group: added base_type type member

Michele Caini %!s(int64=4) %!d(string=hai) anos
pai
achega
4347ebcee2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/entt/entity/group.hpp

+ 4 - 0
src/entt/entity/group.hpp

@@ -160,6 +160,8 @@ public:
     using reverse_iterator = typename basic_common_type::reverse_iterator;
     /*! @brief Iterable group type. */
     using iterable_group = iterable;
+    /*! @brief Common type among all storage types. */
+    using base_type = basic_common_type;
 
     /*! @brief Default constructor to use to create empty, invalid groups. */
     basic_group() ENTT_NOEXCEPT
@@ -661,6 +663,8 @@ public:
     using reverse_iterator = typename basic_common_type::reverse_iterator;
     /*! @brief Iterable group type. */
     using iterable_group = iterable;
+    /*! @brief Common type among all storage types. */
+    using base_type = basic_common_type;
 
     /*! @brief Default constructor to use to create empty, invalid groups. */
     basic_group() ENTT_NOEXCEPT