◆ is_aligned() [2/2]

template<typename T , typename Arch >
bool boost::simd::is_aligned ( T const *  ptr,
Arch const &  arch 
)
noexcept

Checks if a pointer is aligned withing a given architecture's constraints.

Parameters
ptrPointer to check
archArchitecture descriptor to use as reference
Returns
true if ptr is aligned properly; false otherwise