BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsls::AlignedBuffer_Data< SIZE, ALIGNMENT > Union Template Reference

#include <bsls_alignedbuffer.h>

Detailed Description

template<int SIZE, int ALIGNMENT>
union bsls::AlignedBuffer_Data< SIZE, ALIGNMENT >

This private implementation type provides a public char array data member d_buffer whose length is the specifed (template parameter) SIZE and which is aligned according to the specified (template parameter) ALIGNMENT.

Public Types

typedef AlignmentToType< ALIGNMENT >::Type AlignmentType
 

Public Attributes

char d_buffer [SIZE]
 
AlignmentType d_align
 

Member Typedef Documentation

◆ AlignmentType

template<int SIZE, int ALIGNMENT>
typedef AlignmentToType<ALIGNMENT>::Type bsls::AlignedBuffer_Data< SIZE, ALIGNMENT >::AlignmentType

Define an alias for alignment type to work around a Sun CC 5.5 bug that gives a warning if the type is directly accessed in the union.

Note
Note that to allow the union to access this typedef it must be declared with public access.

Member Data Documentation

◆ d_align

template<int SIZE, int ALIGNMENT>
AlignmentType bsls::AlignedBuffer_Data< SIZE, ALIGNMENT >::d_align

◆ d_buffer

template<int SIZE, int ALIGNMENT>
char bsls::AlignedBuffer_Data< SIZE, ALIGNMENT >::d_buffer[SIZE]

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