Browse Source

Array: Added some missing properties from Container and AllocatorAwareContainer std interfaces

Jorrit Rouwe 1 year ago
parent
commit
d6e015372b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Jolt/Core/Array.h

+ 2 - 0
Jolt/Core/Array.h

@@ -36,7 +36,9 @@ class [[nodiscard]] Array : private Allocator
 {
 public:
 	using value_type = T;
+	using allocator_type = Allocator;
 	using size_type = size_t;
+	using difference_type = typename Allocator::difference_type;
 	using pointer = T *;
 	using const_pointer = const T *;
 	using reference = T &;