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

◆ is_aligned() [2/4]

template<std::size_t Alignment, typename T >
bool eve::is_aligned ( T * ptr)
constexprnoexcept
Parameters
ptrPointer to check
Template Parameters
AlignmentAlignment constraint to verify. Behavior is undefined if this constraint is not a power of 2.
Returns
true if ptr is aligned over Alignment, false otherwise.