A single block in the list. More...
#include <pointer_list.h>
Public Types | |
typedef unsigned long | ulong |
typedef void * | value_type |
The element type we store. | |
Static Public Member Functions | |
static size_t | size (size_t nelt) |
Size in bytes of a block holding nelt elements. (excluding the end-pointer). | |
Public Attributes | |
value_type | m_data [1] |
A single block in the list.
It contains some number of pointers. The last element of the block contains a link to the next block. Blocks are aligned so that we can tell if we're looking at the last element from the low bits of an address.
size_t CxxUtils::pointer_list_base::list_block::size | ( | size_t | nelt | ) | [inline, static] |
Size in bytes of a block holding nelt
elements. (excluding the end-pointer).
Size in bytes of a block holding nelt
elements (excluding the end-pointer).
nelt | Number of elements. |
The elements. This structure is variable-sized; it will be allocated for the correct number of elements.