mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
feat: add forEach method to ProcessorChain
This commit is contained in:
parent
a8ae6edda6
commit
47082cecd5
1 changed files with 6 additions and 0 deletions
|
|
@ -96,6 +96,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