E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ align() [3/4]

template<std::integral T>
constexpr auto eve::align ( v,
over  alignment 
)
constexprnoexcept
Parameters
vIntegral value to realign
alignmentAlignment constraint to apply. Behavior is undefined if this constraint is not a power of 2.
Returns
An integer value greater or equal to v which is a multiple of alignment
See also
align(T v, under alignment)
align(T* v, over alignment)
align(T* v, under alignment)