E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
align()
[2/4]
template<typename T >
constexpr auto eve::align
(
T *
ptr
,
under
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 lesser 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, over alignment)
eve