Function ripple::align_ptr¶
Function Documentation¶
-
auto
ripple
::
align_ptr
(const void *ptr, size_t alignment) noexcept -> void*¶ Gets a pointer with an address aligned to the goven alignment.
- Note
In debug, this will assert at runtime if the alignemnt is not a power of two, in release, the behaviour is undefined.
- Parameters
ptr
: The pointer to align.alignment
: The alignment to ensure.