#include <FlexibleArray.h>


Public Member Functions | |
FlexibleArray (const int capacity) | |
Item & | operator[] (const int idx) |
Item * | raw () |
Private Attributes | |
std::byte | start_ |
the first byte of the first array item More... | |
Detailed Description
class Ipc::Mem::FlexibleArray< Item >
A "flexible array" of Items inside some shared memory space. A portable equivalent of a "Item items[];" data member. Some compilers such as Clang can only handle flexible arrays of PODs, and the current C++ standard does not allow flexible arrays at all.
Definition at line 26 of file FlexibleArray.h.
Constructor & Destructor Documentation
◆ FlexibleArray()
|
inlineexplicit |
Definition at line 29 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::raw().
Member Function Documentation
◆ operator[]()
|
inline |
Definition at line 33 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::raw().
◆ raw()
|
inline |
Definition at line 35 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::start_.
Referenced by Ipc::Mem::FlexibleArray< Item >::FlexibleArray(), and Ipc::Mem::FlexibleArray< Item >::operator[]().
Member Data Documentation
◆ start_
|
private |
Definition at line 38 of file FlexibleArray.h.
Referenced by Ipc::Mem::FlexibleArray< Item >::raw().
The documentation for this class was generated from the following file:
- src/ipc/mem/FlexibleArray.h