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