11 #ifndef TLX_META_CALL_FOREACH_HEADER 12 #define TLX_META_CALL_FOREACH_HEADER 25 namespace meta_detail {
28 template <
typename Functor,
typename Arg>
30 std::forward<Functor>(f)(std::forward<Arg>(arg));
34 template <
typename Functor,
typename Arg,
typename... MoreArgs>
36 Functor&& f, Arg&& arg, MoreArgs&& ... rest) {
37 std::forward<Functor>(f)(std::forward<Arg>(arg));
39 std::forward<Functor>(f), std::forward<MoreArgs>(rest) ...);
46 template <
typename Functor,
typename... Args>
49 std::forward<Functor>(f), std::forward<Args>(args) ...);
56 #endif // !TLX_META_CALL_FOREACH_HEADER