15 #ifndef CORE_MULTI_SIMULATION_DYNAMIC_LOOP_H_
16 #define CORE_MULTI_SIMULATION_DYNAMIC_LOOP_H_
25 namespace experimental {
29 template <
typename Lambda>
31 const std::vector<OptimizationParamType*>& containers,
32 const Lambda& action) {
34 auto depth = containers.size();
38 std::vector<uint32_t> slots(depth, 0);
49 while (slots[index] == containers[index]->GetNumElements()) {
51 if (index == depth - 1) {
66 #endif // CORE_MULTI_SIMULATION_DYNAMIC_LOOP_H_