FR: Support structured binding with JUCE types

Adding structured binding support for arbitrary custom types works by supplying template specialisations for std::tuple_size, std::tuple_element and std::get. This blog entry describes it in detail.

Since these are free functions, you can just implement them yourself in your code without needing to wait for JUCE to implement it.

Still I support this request, I think there are some types that could benefit from it. By the way, dsp::ProcessorChain already supports it, which is quite handy, I don‘t know if there are already further JUCE types with structured binding support?

6 Likes