Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsls::AlignedBuffer< SIZE, ALIGNMENT > Class Template Reference

#include <bsls_alignedbuffer.h>

List of all members.

Public Member Functions

char * buffer ()
const char * buffer () const

Detailed Description

template<int SIZE, int ALIGNMENT = AlignmentUtil::BSLS_MAX_ALIGNMENT>
class bsls::AlignedBuffer< SIZE, ALIGNMENT >

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


Member Function Documentation

template<int SIZE, int ALIGNMENT = AlignmentUtil::BSLS_MAX_ALIGNMENT>
char* bsls::AlignedBuffer< SIZE, ALIGNMENT >::buffer (  ) 

Return a the address of the first byte of this object, cast to a char* pointer.

template<int SIZE, int ALIGNMENT = AlignmentUtil::BSLS_MAX_ALIGNMENT>
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.


The documentation for this class was generated from the following file: