Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
319 B · 15 lines
C++
12345678910111213141516#ifndef OPENMW_COMPONENTS_MISC_TUPLEHELPERS_H#define OPENMW_COMPONENTS_MISC_TUPLEHELPERS_H
#include <tuple>
namespace Misc{ template <typename TupleType, typename Callable> void tupleForEach(TupleType& tuple, Callable&& f) { std::apply([&f](auto&... x) { (f(x), ...); }, tuple); }}
#endif