BloombergLP::bslma::BufferAllocator::AlignmentStrategy

Types of alignment strategy to allocate memory.

Synopsis

Declared in <bslma_bufferallocator.h>

enum AlignmentStrategy;

Members

NameDescription
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).