AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
aui::zip< Containers > Struct Template Reference

Iterates multiple containers in parallel. More...

Detailed Description

template<typename... Containers>
struct aui::zip< Containers >

Iterates multiple containers in parallel.

std::array<int, 3> ints = { 1, 2, 3 };
std::array<std::string, 3> strings = { "one", "two", "three" };
for (auto&[i, s] : aui::zip(ints, strings)) {
std::cout << i << ", " << s << std::endl;
}
Iterates multiple containers in parallel.
Definition: iterators.h:154
1, one
2, two
3, three
Examples
/github/workspace/aui.core/src/AUI/Traits/iterators.h.

Classes

struct  iterator
 

Public Member Functions

 zip (Containers &... c)
 
iterator begin () noexcept
 
iterator end () noexcept
 

#include <AUI/Traits/iterators.h>


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