mirror of https://github.com/OpenMW/openmw.git
missing file
parent
256d8a699a
commit
cdc7864863
@ -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
|
Loading…
Reference in New Issue