|
C Container Collection (CCC)
|
#include <private_types.h>
The single type used to handle both forward and reverse iteration through containers. The concept is the exact same due to how we always return the full user type during iteration, regardless of the container being intrusive or not. So we use a union for some clarity for the implementer.
We will also wrap this in two different types so that the user has some help ensuring they pass the correct direction range to the correct function.
Data Fields | |
| union { | |
| size_t begin | |
| size_t reverse_begin | |
| }; | |
| union { | |
| size_t end | |
| size_t reverse_end | |
| }; | |
| size_t CCC_Handle_range::begin |
Start of forward iteration for a container.
| size_t CCC_Handle_range::end |
End of forward iteration for a container.
| size_t CCC_Handle_range::reverse_begin |
Start of reverse iteration for a container.
| size_t CCC_Handle_range::reverse_end |
End of reverse iteration for a container.