#include <nda/mem/allocators.hpp>
template<
AddressSpace AdrSp = Host>
class nda::mem::mallocator< AdrSp >
Custom allocator that uses nda::mem::malloc to allocate memory.
- Template Parameters
-
Definition at line 71 of file allocators.hpp.
|
| mallocator ()=default |
| Default constructor.
|
|
| mallocator (mallocator &&)=default |
| Default move constructor.
|
|
| mallocator (mallocator const &)=delete |
| Deleted copy constructor.
|
|
mallocator & | operator= (mallocator &&)=default |
| Default move assignment operator.
|
|
mallocator & | operator= (mallocator const &)=delete |
| Deleted copy assignment operator.
|
|
◆ allocate()
◆ allocate_zero()
Allocate memory and set it to zero.
The behavior depends on the address space:
- Parameters
-
s | Size in bytes of the memory to allocate. |
- Returns
- nda::mem::blk_t memory block.
Definition at line 109 of file allocators.hpp.
◆ deallocate()
The documentation for this class was generated from the following file: