DASH  0.3.0
AllocatorBase.h
1 #ifndef DASH__ALLOCATOR__BASE_H__INCLUDED
2 #define DASH__ALLOCATOR__BASE_H__INCLUDED
3 
4 #include <dash/Types.h>
5 #include <dash/allocator/AllocationPolicy.h>
6 #include <dash/memory/MemorySpace.h>
7 
8 namespace dash {
9 
10 namespace allocator {
11 
12 template <typename T>
13 using polymorphic_allocator = std::pmr::polymorphic_allocator<T>;
14 
15 template <typename T>
18 
19 public:
20  DefaultAllocator() = default;
21 
22  template <class MemSpaceT>
23  explicit DefaultAllocator(MemSpaceT* r)
24  : base_t(r)
25  {
26  }
27 };
28 
29 } // namespace allocator
30 
31 } // namespace dash
32 #endif
This class is a simple memory pool which holds allocates elements of size ValueType.
Definition: AllOf.h:8