|
dune-common 2.10
|
Allocators implementation which simply calls malloc/free. More...
#include <dune/common/mallocallocator.hh>

Classes | |
| struct | rebind |
Public Types | |
| typedef std::size_t | size_type |
| typedef std::ptrdiff_t | difference_type |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T | value_type |
Public Member Functions | |
| MallocAllocator () noexcept | |
| create a new MallocAllocator | |
| template<class U> | |
| MallocAllocator (const MallocAllocator< U > &) noexcept | |
| copy construct from an other MallocAllocator, possibly for a different result type | |
| ~MallocAllocator () noexcept | |
| cleanup this allocator | |
| pointer | address (reference x) const |
| const_pointer | address (const_reference x) const |
| pointer | allocate (size_type n, const void *hint=0) |
| allocate n objects of type T | |
| void | deallocate (pointer p, size_type n) |
| deallocate n objects of type T at address p | |
| size_type | max_size () const noexcept |
| max size for allocate | |
| void | construct (pointer p, const T &val) |
| copy-construct an object of type T (i.e. make a placement new on p) | |
| template<typename ... Args> | |
| void | construct (pointer p, Args &&... args) |
| construct an object of type T from variadic parameters | |
| void | destroy (pointer p) |
| destroy an object of type T (i.e. call the destructor) | |
Allocators implementation which simply calls malloc/free.
| typedef const T* Dune::MallocAllocator< T >::const_pointer |
| typedef const T& Dune::MallocAllocator< T >::const_reference |
| typedef std::ptrdiff_t Dune::MallocAllocator< T >::difference_type |
| typedef T* Dune::MallocAllocator< T >::pointer |
| typedef T& Dune::MallocAllocator< T >::reference |
| typedef std::size_t Dune::MallocAllocator< T >::size_type |
| typedef T Dune::MallocAllocator< T >::value_type |
|
inlinenoexcept |
create a new MallocAllocator
|
inlinenoexcept |
copy construct from an other MallocAllocator, possibly for a different result type
|
inlinenoexcept |
cleanup this allocator
|
inline |
|
inline |
|
inline |
allocate n objects of type T
|
inline |
construct an object of type T from variadic parameters
|
inline |
copy-construct an object of type T (i.e. make a placement new on p)
|
inline |
deallocate n objects of type T at address p
|
inline |
destroy an object of type T (i.e. call the destructor)
|
inlinenoexcept |
max size for allocate