ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Fields | List of all members
UnionPointers Union Reference

Class Description

Inner union with various constexpr constructors (not shown in documentation) to support the initialization of the outer union as constexpr.

Collects a void and a char pointer and arrays of those.
In addition, non-pointer field Memory (type char) is given, which can be be used to receive a pointer to the start of the placeholder by applying operator&. This char* then can be reinterpreted without braking the strict-aliasing rule when compiling the code with higher optimization levels.

Definition at line 163 of file placeholder.inl.

Public Fields

const char * CChar
 A constant void pointer.
 
const char * CCharArray [2]
 Array of const char* of length 2.
 
char * Char
 A void pointer.
 
char * CharArray [2]
 Array of char* of length 2.
 
const void * CVoid
 A constant void pointer.
 
const void * CVoidArray [2]
 Array of const void* of length 2.
 
const wcharCWChar
 A constant wchar pointer.
 
const wcharCWCharArray [2]
 Array of const wchar* of length 2.
 
char Memory
 Not a pointer but becomes one with applying operator&.
 
void * Void
 A void pointer.
 
void * VoidArray [2]
 Array of void* of length 2.
 
wcharWChar
 A wchar pointer.
 
wcharWCharArray [2]
 Array of wchar* of length 2.
 

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