set_align_memory_functions (Memory Custom Handlers)


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


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.