|
|
@@ -31,7 +31,7 @@ class storage_iterator final {
|
|
|
friend class storage_iterator;
|
|
|
|
|
|
using container_type = stl::remove_const_t<Container>;
|
|
|
- using alloc_traits = std::allocator_traits<typename container_type::allocator_type>;
|
|
|
+ using alloc_traits = stl::allocator_traits<typename container_type::allocator_type>;
|
|
|
|
|
|
using iterator_traits = stl::iterator_traits<stl::conditional_t<
|
|
|
stl::is_const_v<Container>,
|
|
|
@@ -205,8 +205,8 @@ private:
|
|
|
* @tparam Allocator Type of allocator used to manage memory and elements.
|
|
|
*/
|
|
|
template<typename Type, typename Entity, typename Allocator>
|
|
|
-class basic_storage: public basic_sparse_set<Entity, typename std::allocator_traits<Allocator>::template rebind_alloc<Entity>> {
|
|
|
- using alloc_traits = std::allocator_traits<Allocator>;
|
|
|
+class basic_storage: public basic_sparse_set<Entity, typename stl::allocator_traits<Allocator>::template rebind_alloc<Entity>> {
|
|
|
+ using alloc_traits = stl::allocator_traits<Allocator>;
|
|
|
static_assert(stl::is_same_v<typename alloc_traits::value_type, Type>, "Invalid value type");
|
|
|
using container_type = stl::vector<typename alloc_traits::pointer, typename alloc_traits::template rebind_alloc<typename alloc_traits::pointer>>;
|
|
|
using underlying_type = basic_sparse_set<Entity, typename alloc_traits::template rebind_alloc<Entity>>;
|
|
|
@@ -774,8 +774,8 @@ private:
|
|
|
template<typename Type, typename Entity, typename Allocator>
|
|
|
requires (component_traits<Type, Entity>::page_size == 0u)
|
|
|
class basic_storage<Type, Entity, Allocator>
|
|
|
- : public basic_sparse_set<Entity, typename std::allocator_traits<Allocator>::template rebind_alloc<Entity>> {
|
|
|
- using alloc_traits = std::allocator_traits<Allocator>;
|
|
|
+ : public basic_sparse_set<Entity, typename stl::allocator_traits<Allocator>::template rebind_alloc<Entity>> {
|
|
|
+ using alloc_traits = stl::allocator_traits<Allocator>;
|
|
|
static_assert(stl::is_same_v<typename alloc_traits::value_type, Type>, "Invalid value type");
|
|
|
using traits_type = component_traits<Type, Entity>;
|
|
|
|
|
|
@@ -957,7 +957,7 @@ public:
|
|
|
template<typename Entity, typename Allocator>
|
|
|
class basic_storage<Entity, Entity, Allocator>
|
|
|
: public basic_sparse_set<Entity, Allocator> {
|
|
|
- using alloc_traits = std::allocator_traits<Allocator>;
|
|
|
+ using alloc_traits = stl::allocator_traits<Allocator>;
|
|
|
static_assert(stl::is_same_v<typename alloc_traits::value_type, Entity>, "Invalid value type");
|
|
|
using underlying_iterator = basic_sparse_set<Entity, Allocator>::basic_iterator;
|
|
|
using traits_type = entt_traits<Entity>;
|