mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
Merge 47082cecd5 into 2efd3e0661
This commit is contained in:
commit
32fee33604
1 changed files with 6 additions and 0 deletions
|
|
@ -105,6 +105,12 @@ public:
|
|||
processors);
|
||||
}
|
||||
|
||||
/** Call the given function on each processor */
|
||||
template <typename Fn>
|
||||
void forEach(Fn &&fn) {
|
||||
detail::forEachInTuple([&](auto &proc, auto) { fn(proc); }, processors);
|
||||
}
|
||||
|
||||
private:
|
||||
template <typename Context, typename Proc, size_t Ix>
|
||||
void processOne (const Context& context, Proc& proc, std::integral_constant<size_t, Ix>) noexcept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue