muu/aligned_alloc.h file

Contains the definition of muu::aligned_alloc().

Namespaces

namespace muu
The root namespace for all muu functions and types.

Functions

auto aligned_alloc(size_t size, size_t alignment) -> void* noexcept
Allocates memory on a specific alignment boundary.
void aligned_free(void* ptr) noexcept
Frees memory that was allocated using muu::aligned_alloc().