Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
immer::malloc_heap Struct Reference
#include <malloc_heap.hpp>
Static Public Member Functions | |
template<typename... Tags> | |
static void * | allocate (std::size_t size, Tags...) |
static void | deallocate (std::size_t, void *data) |
Detailed Description
A heap that uses std::malloc
and std::free
to manage memory.
Definition at line 21 of file malloc_heap.hpp.
Member Function Documentation
◆ allocate()
template<typename... Tags>
|
inlinestatic |
Returns a pointer to a memory region of size size
, if the allocation was successful and throws std::bad_alloc
otherwise.
Definition at line 28 of file malloc_heap.hpp.
References IMMER_UNLIKELY.
◆ deallocate()
|
inlinestatic |
Releases a memory region data
that was previously returned by allocate
. One must not use nor deallocate again a memory region that once it has been deallocated.
Definition at line 41 of file malloc_heap.hpp.
The documentation for this struct was generated from the following file:
- src/immer/heap/malloc_heap.hpp