#ifndef OPENMW_COMPONENTS_MISC_TUPLEHELPERS_H #define OPENMW_COMPONENTS_MISC_TUPLEHELPERS_H #include namespace Misc { template void tupleForEach(TupleType& tuple, Callable&& f) { std::apply([&f](auto&... x) { (f(x), ...); }, tuple); } } #endif