ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
UnionPointers Union Reference

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 Field Index:

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.
 

Field Details:

◆ CChar

const char* CChar

A constant void pointer.

Definition at line 168 of file placeholder.inl.

◆ CCharArray

const char* CCharArray[2]

Array of const char* of length 2.

Definition at line 175 of file placeholder.inl.

◆ Char

char* Char

A void pointer.

Definition at line 167 of file placeholder.inl.

◆ CharArray

char* CharArray[2]

Array of char* of length 2.

Definition at line 174 of file placeholder.inl.

◆ CVoid

const void* CVoid

A constant void pointer.

Definition at line 166 of file placeholder.inl.

◆ CVoidArray

const void* CVoidArray[2]

Array of const void* of length 2.

Definition at line 173 of file placeholder.inl.

◆ CWChar

const wchar* CWChar

A constant wchar pointer.

Definition at line 170 of file placeholder.inl.

◆ CWCharArray

const wchar* CWCharArray[2]

Array of const wchar* of length 2.

Definition at line 177 of file placeholder.inl.

◆ Memory

char Memory

Not a pointer but becomes one with applying operator&.

Definition at line 179 of file placeholder.inl.

◆ Void

void* Void

A void pointer.

Definition at line 165 of file placeholder.inl.

◆ VoidArray

void* VoidArray[2]

Array of void* of length 2.

Definition at line 172 of file placeholder.inl.

◆ WChar

wchar* WChar

A wchar pointer.

Definition at line 169 of file placeholder.inl.

◆ WCharArray

wchar* WCharArray[2]

Array of wchar* of length 2.

Definition at line 176 of file placeholder.inl.


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