| 44 | */ |
| 45 | template <typename... Ts> |
| 46 | bool update_window_and_padding(Window &win, Ts &&...patterns) |
| 47 | { |
| 48 | bool window_changed = false; |
| 49 | |
| 50 | utility::for_each([&](const IAccessWindow &w) { window_changed |= w.update_window_if_needed(win); }, patterns...); |
| 51 | |
| 52 | utility::for_each([&](IAccessWindow &w) { w.update_padding_if_needed(win); }, patterns...); |
| 53 | |
| 54 | return window_changed; |
| 55 | } |
| 56 | |
| 57 | /** Intersect multiple valid regions. |
| 58 | * |
no test coverage detected