BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls::AlignedBuffer< SIZE, ALIGNMENT > Class Template Reference

#include <bsls_alignedbuffer.h>

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 bsls_alignedbuffer

Member Function Documentation

◆ buffer() [1/2]

template<int SIZE, int ALIGNMENT>
char * bsls::AlignedBuffer< SIZE, ALIGNMENT >::buffer ( )
inline

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

◆ buffer() [2/2]

template<int SIZE, int ALIGNMENT>
const char * bsls::AlignedBuffer< SIZE, ALIGNMENT >::buffer ( ) const
inline

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: