Function is_aligned
boost::alignment::is_aligned
Synopsis
bool is_aligned(std::size_t alignment, const void * ptr);
Description
Determines whether the space pointed to by ptr
has alignment specified by alignment
.
Parameters: |
alignment
|
Shall be a power of two. |
ptr
|
Pointer to test for alignment. |
|
Returns: |
true if and only if ptr points to space that has alignment specified by alignment .
|