Dune Core Modules (2.6.0)
mallocallocator.hh
Go to the documentation of this file.
Allocators implementation which simply calls malloc/free.
Definition: mallocallocator.hh:23
~MallocAllocator() noexcept
cleanup this allocator
Definition: mallocallocator.hh:42
void construct(pointer p, const T &val)
copy-construct an object of type T (i.e. make a placement new on p)
Definition: mallocallocator.hh:81
MallocAllocator() noexcept
create a new MallocAllocator
Definition: mallocallocator.hh:37
MallocAllocator(const MallocAllocator< U > &) noexcept
copy construct from an other MallocAllocator, possibly for a different result type
Definition: mallocallocator.hh:40
void deallocate(pointer p, size_type n)
deallocate n objects of type T at address p
Definition: mallocallocator.hh:68
void destroy(pointer p)
destroy an object of type T (i.e. call the destructor)
Definition: mallocallocator.hh:94
pointer allocate(size_type n, const void *hint=0)
allocate n objects of type T
Definition: mallocallocator.hh:54
void construct(pointer p, _Args &&... __args)
construct an object of type T from variadic parameters
Definition: mallocallocator.hh:88
size_type max_size() const noexcept
max size for allocate
Definition: mallocallocator.hh:75
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentionally unused function parameters with.
Definition: unused.hh:25
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 24, 23:30, 2024)