![]() |
R-Type
2
Doom but in better
|
Combines multiple containers into a single iterable unit, iterating over corresponding elements from each container. More...
#include <IndexedZipper.hpp>
Public Types | |
using | iterator = IndexedZipperIterator<Containers...> |
Type alias for the iterator type. | |
using | iterator_t = typename iterator::iterator_tuple |
Type alias for the tuple of iterators for the zipped containers. | |
Public Member Functions | |
IndexedZipper (Containers &... cs) | |
Constructs an IndexedZipper with the given containers. | |
iterator | begin () |
Returns an iterator to the beginning of the zipped containers. | |
iterator | end () |
Returns an iterator to the end of the zipped containers. | |
Combines multiple containers into a single iterable unit, iterating over corresponding elements from each container.
The IndexedZipper
class allows simultaneous iteration over multiple containers. It provides an interface to iterate over a tuple of elements from the containers at the same index.
Containers | Variadic template parameter for the types of containers to zip together. |
Definition at line 15 of file IndexedZipper.hpp.
using IndexedZipper< Containers >::iterator = IndexedZipperIterator<Containers...> |
Type alias for the iterator type.
Iterator for traversing the zipped containers.
Definition at line 18 of file IndexedZipper.hpp.
using IndexedZipper< Containers >::iterator_t = typename iterator::iterator_tuple |
Type alias for the tuple of iterators for the zipped containers.
Definition at line 20 of file IndexedZipper.hpp.
|
inline |
Constructs an IndexedZipper
with the given containers.
cs | References to the containers to zip together. |
Definition at line 27 of file IndexedZipper.hpp.
|
inline |
Returns an iterator to the beginning of the zipped containers.
Definition at line 36 of file IndexedZipper.hpp.
|
inline |
Returns an iterator to the end of the zipped containers.
Definition at line 45 of file IndexedZipper.hpp.