Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

immer::cpp_heap Struct Reference

#include <cpp_heap.hpp>

Static Public Member Functions

template<typename... Tags>
static void * allocate (std::size_t size, Tags...)
 
static void deallocate (std::size_t size, void *data)
 

Detailed Description

A heap that uses operator new and operator delete.

Definition at line 18 of file cpp_heap.hpp.

Member Function Documentation

◆ allocate()

template<typename... Tags>
static void* immer::cpp_heap::allocate ( std::size_t  size,
Tags...   
)
inlinestatic

Returns a pointer to a memory region of size size, if the allocation was successful, and throws otherwise.

Definition at line 25 of file cpp_heap.hpp.

◆ deallocate()

static void immer::cpp_heap::deallocate ( std::size_t  size,
void *  data 
)
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 35 of file cpp_heap.hpp.


The documentation for this struct was generated from the following file:
Released under the MIT license