AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
aui::zip< Containers > Struct Template Reference

Iterates multiple containers in parallel. More...

#include <AUI/Traits/iterators.h>

Classes

struct  iterator
 

Public Member Functions

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

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
/home/runner/work/aui/aui/aui.core/src/AUI/Traits/iterators.h.

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