diff --git a/src/entt/container/dense_map.hpp b/src/entt/container/dense_map.hpp index 31751e0a2..3901977cd 100644 --- a/src/entt/container/dense_map.hpp +++ b/src/entt/container/dense_map.hpp @@ -341,6 +341,8 @@ class dense_map { } public: + /*! @brief Allocator type. */ + using allocator_type = Allocator; /*! @brief Key type of the container. */ using key_type = Key; /*! @brief Mapped type of the container. */ @@ -353,8 +355,6 @@ public: using hasher = Hash; /*! @brief Type of function to use to compare the keys for equality. */ using key_equal = KeyEqual; - /*! @brief Allocator type. */ - using allocator_type = Allocator; /*! @brief Input iterator type. */ using iterator = internal::dense_map_iterator; /*! @brief Constant input iterator type. */ diff --git a/src/entt/container/dense_set.hpp b/src/entt/container/dense_set.hpp index ca95ab97a..8073e02d8 100644 --- a/src/entt/container/dense_set.hpp +++ b/src/entt/container/dense_set.hpp @@ -287,6 +287,8 @@ class dense_set { } public: + /*! @brief Allocator type. */ + using allocator_type = Allocator; /*! @brief Key type of the container. */ using key_type = Type; /*! @brief Value type of the container. */ @@ -297,8 +299,6 @@ public: using hasher = Hash; /*! @brief Type of function to use to compare the elements for equality. */ using key_equal = KeyEqual; - /*! @brief Allocator type. */ - using allocator_type = Allocator; /*! @brief Random access iterator type. */ using iterator = internal::dense_set_iterator; /*! @brief Constant random access iterator type. */ diff --git a/src/entt/entity/observer.hpp b/src/entt/entity/observer.hpp index f15c233b9..1afc2059e 100644 --- a/src/entt/entity/observer.hpp +++ b/src/entt/entity/observer.hpp @@ -262,14 +262,14 @@ class basic_observer: private basic_storage; public: + /*! @brief Allocator type. */ + using allocator_type = Allocator; /*! @brief Base type. */ using base_type = basic_sparse_set>; /*! @brief Element type. */ @@ -789,8 +791,6 @@ public: using entity_type = Entity; /*! @brief Unsigned integer type. */ using size_type = std::size_t; - /*! @brief Allocator type. */ - using allocator_type = Allocator; /*! @brief Extended iterable storage proxy. */ using iterable = iterable_adaptor>; /*! @brief Constant extended iterable storage proxy. */ @@ -983,6 +983,8 @@ protected: } public: + /*! @brief Allocator type. */ + using allocator_type = Allocator; /*! @brief Base type. */ using base_type = basic_sparse_set; /*! @brief Element type. */ @@ -991,8 +993,6 @@ public: using entity_type = Entity; /*! @brief Unsigned integer type. */ using size_type = std::size_t; - /*! @brief Allocator type. */ - using allocator_type = Allocator; /*! @brief Extended iterable storage proxy. */ using iterable = iterable_adaptor>; /*! @brief Constant extended iterable storage proxy. */ diff --git a/src/entt/resource/cache.hpp b/src/entt/resource/cache.hpp index 590f73d1b..887846905 100644 --- a/src/entt/resource/cache.hpp +++ b/src/entt/resource/cache.hpp @@ -157,14 +157,14 @@ class resource_cache { using container_type = dense_map, container_allocator>; public: + /*! @brief Allocator type. */ + using allocator_type = Allocator; /*! @brief Resource type. */ using value_type = Type; /*! @brief Unsigned integer type. */ using size_type = std::size_t; /*! @brief Loader type. */ using loader_type = Loader; - /*! @brief Allocator type. */ - using allocator_type = Allocator; /*! @brief Input iterator type. */ using iterator = internal::resource_cache_iterator; /*! @brief Constant input iterator type. */