1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 20:23:54 +00:00

missing file

This commit is contained in:
florent.teppe 2022-09-10 20:25:18 +02:00
parent 256d8a699a
commit cdc7864863

View file

@ -0,0 +1,15 @@
#ifndef OPENMW_COMPONENTS_MISC_TUPLEHELPER_H
#define OPENMW_COMPONENTS_MISC_TUPLEHELPER_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