Skip to content

Memory allocation


aligned_allocate function

template <typename T = void,
          size_t alignment = default_memory_alignment>
T *aligned_allocate(size_t size = 1)

Allocates aligned memory


template <typename T = void>
T *aligned_allocate(size_t size, size_t alignment)

Allocates aligned memory


aligned_deallocate function

template <typename T = void> void aligned_deallocate(T *ptr)

Deallocates aligned memory


data_allocator class

template <typename T> data_allocator

Aligned allocator


Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/