Stan Math Library
4.9.0
Automatic Differentiation
|
bool stan::math::is_aligned | ( | T * | ptr, |
unsigned int | bytes_aligned | ||
) |
Return true
if the specified pointer is aligned on the number of bytes.
This doesn't really make sense other than for powers of 2.
ptr | Pointer to test. |
bytes_aligned | Number of bytes of alignment required. |
true
if pointer is aligned. Type | of object to which pointer points. |
Definition at line 29 of file stack_alloc.hpp.