In this namespace some helper functions for std::tuple can be found. More...
Functions | |
template<class T , class F > | |
void | for_each (T &&tuple, F &&f) |
Applies a function f on every element of the tuple. | |
In this namespace some helper functions for std::tuple can be found.
void autopas::utils::TupleUtils::for_each | ( | T && | tuple, |
F && | f | ||
) |
Applies a function f on every element of the tuple.
Elements are processed in the order they are declared.
T | Type of the tuple |
F | Type of the function |
tuple | The tuple to iterate |
f | The function to apply. Typically [&](auto &elem) {...} |