Function afree

Synopsis

#include <src/c4/memory_resource.hpp>

void afree(void *ptr)

Description

Aligned free. Merely calls the current get_afree() function.

See
get_afree()

Mentioned in

Source

Lines 143-148 in src/c4/memory_resource.cpp. Line 47 in src/c4/memory_resource.hpp.

void afree(void* ptr)
{
    C4_ASSERT_MSG(c4::get_afree() != nullptr, "did you forget to call set_afree()?");
    auto fn = c4::get_afree();
    fn(ptr);
}





Add Discussion as Guest

Log in