set_align_memory_functions (Memory Custom Handlers)


Synopsis

void archr_set_align_memory_functions(void *(*)(size_t, size_t), void(*)(void *));
(1)
namespace archr {
void set_align_memory_functions(void *(*)(std::size_t, std::size_t), void(*)(void *));
(1)
}

Description

Replace the current aligned allocation functions from the arguments. These functions will be used for all memory allocation done by Arch-R. Align_malloc_func and align_free_func must be pointers to functions that have the same signatures and behaviors as the Boost functions aligned_alloc and aligned_free respectively.