Types of alignment strategy to allocate memory.
Declared in <bslma_bufferallocator.h>
enum AlignmentStrategy;
| Name | Description |
|---|---|
MAXIMUM_ALIGNMENT | Return memory on a maximally-aligned boundary (bsls::AlignmentUtil::BSLS_MAX_ALIGNMENT), as required for ANSI standard allocators. |
NATURAL_ALIGNMENT | Return memory aligned on the largest power of two dividing the requested size (up to bsls::AlignmentUtil::BSLS_MAX_ALIGNMENT). |