1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00
This commit is contained in:
Amin Ya 2025-11-15 11:37:48 -05:00 committed by GitHub
commit 32fee33604
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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