Function CE::Memory::Pointers::calculate_alignment(void *)

Function Documentation

inline std::align_val_t CE::Memory::Pointers::calculate_alignment(void *ptr)

Reports the address-derived alignment of a borrowed pointer.

Parameters:

ptr – Pointer whose numeric address is inspected; null produces zero.

Returns:

Alignment value, not a guarantee about allocation size or object validity.