C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Handle_range Struct Reference

#include <private_types.h>

Detailed Description

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
 
}; 
 

Field Documentation

◆ begin

size_t CCC_Handle_range::begin

Start of forward iteration for a container.

◆ end

size_t CCC_Handle_range::end

End of forward iteration for a container.

◆ reverse_begin

size_t CCC_Handle_range::reverse_begin

Start of reverse iteration for a container.

◆ reverse_end

size_t CCC_Handle_range::reverse_end

End of reverse iteration for a container.


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