Преглед изворни кода

group: added base_type type member

Michele Caini пре 4 година
родитељ
комит
4347ebcee2
1 измењених фајлова са 4 додато и 0 уклоњено
  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