8 #ifndef SIG_UTIL_FOREACH_HPP
9 #define SIG_UTIL_FOREACH_HPP
11 #include "../helper/helper_modules.hpp"
12 #include "../helper/container_helper.hpp"
45 template <
class F,
class... Cs>
48 const uint length =
min(containers.size()...);
77 template <
class F,
class... Cs>
78 void for_each(F&& func,
int init, Cs&&... containers)
80 const uint length =
min(containers.size()...);
void for_each(F &&func, Cs &&...containers)
複数コンテナを反復処理
void iterative_assign(uint loop, F &&func, Its...iterators)
auto begin(C &&c) -> std::move_iterator< typename RC::iterator >