Memory module

Memory management utilities.

Files

file bn_alignment.h
file bn_memory.h
file bn_memory_alias.h
file bn_unique_ptr.h

Namespaces

namespace bn
Main Butano namespace.
namespace bn::memory
Memory related functions.

Classes

template<typename Type>
struct bn::default_delete
Default deleter.

Functions

template<int Bytes>
auto aligned(const void* pointer) -> bool
Indicates if the given void pointer is aligned to the given Bytes.
template<int Bytes, typename Type>
auto aligned(const Type* pointer) -> bool
Indicates if the given Type pointer is aligned to the given Bytes.

Function documentation

template<int Bytes>
bool aligned(const void* pointer)

Indicates if the given void pointer is aligned to the given Bytes.

template<int Bytes, typename Type>
bool aligned(const Type* pointer)

Indicates if the given Type pointer is aligned to the given Bytes.