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>
16
class
DefaultAllocator
:
public
polymorphic_allocator
<T> {
17
using
base_t
=
polymorphic_allocator<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
dash
This class is a simple memory pool which holds allocates elements of size ValueType.
Definition:
AllOf.h:8
dash::allocator::DefaultAllocator
Definition:
AllocatorBase.h:16
std::pmr::polymorphic_allocator
Definition:
polymorphic_allocator.h:224
tmp
tmporruphar
dash
include
dash
allocator
AllocatorBase.h
Generated by
1.8.13