Quick Links: |
#include <bsls_alignedbuffer.h>
Public Member Functions | |
char * | buffer () |
const char * | buffer () const |
An instance of this union is a block of raw memory of specified SIZE
and ALIGNMENT
. A AlignedBuffer
object does not manage the construction or destruction of any other objects. SIZE
is rounded up to the nearest multiple of ALIGNMENT
. An instantiation of this union template will not compile unless ALIGNMENT
is a power of two not larger than AlignmentUtil::BSLS_MAX_ALIGNMENT
.
See Component bsls_alignedbuffer
char* bsls::AlignedBuffer< SIZE, ALIGNMENT >::buffer | ( | ) |
Return a the address of the first byte of this object, cast to a char*
pointer.
const char* bsls::AlignedBuffer< SIZE, ALIGNMENT >::buffer | ( | ) | const |
Return a the address of the first byte of this object, cast to a const char*
pointer.