![]() |
Home | Libraries | People | FAQ | More |
boost::alignment::aligned_alloc
// In header: <boost/align/aligned_alloc.hpp> void * aligned_alloc(std::size_t alignment, std::size_t size);
Allocates space for an object whose alignment is specified by alignment
, whose size is specified by size
, and whose value is indeterminate.
Note: On certain platforms, the alignment may be rounded up to alignof(void*)
and the space allocated may be slightly larger than size
bytes, by an additional sizeof(void*)
and alignment - 1
bytes.
Parameters: |
|
||||
Returns: |
A null pointer or a pointer to the allocated space. |