[FR] Iterator on AudioProcessorGraph::Connections


#1

It would be nice if we had an Iterator on AudioProcessorGraph::Connection so that instead of
e.g.

for (int i = 0; i < graph.getNumConnections(); ++i)
{
    graph.removeConnection (i);
}

we could do

for (auto & connection : graph.getConnections())
{
    graph.removeConnection (connection); 
}

I realise removeConnection(Connection) does not exist, would also be a nice to have…


#2

I remember bringing this up years ago, in a similar vein: AudioProcessGraph: Remove "Connection"