E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
align()
[1/4]
template<typename T >
constexpr auto eve::align
(
T *
ptr
,
over
alignment
)
constexpr
noexcept
Parameters
ptr
Pointer to realign
alignment
Alignment constraint to apply. Behavior is undefined if this constraint is not a power of 2.
Returns
A pointer to
T
which address is greater or equal to
ptr
and which value is a multiple of
alignment
.
See also
align(T v, over alignment)
align(T v, under alignment)
align(T* v, under alignment)
eve