|
Squid Web Cache master
|
#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 | |
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.
|
inlineexplicit |
Definition at line 29 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::raw().
|
inline |
Definition at line 33 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::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[]().
|
private |
Definition at line 38 of file FlexibleArray.h.
Referenced by Ipc::Mem::FlexibleArray< Item >::raw().