KeyValuePair<> in juce


#1

Hi.

Am I missing something or is there no juce class for generic pairs?

Went throught the API and all I could find was Point<> which has a unified type…

Thanks.


#2

There’s NamedValueSet, which uses an Identifier (essentially a String) to key against any chosen type, but I don’t believe there’s a template allowing you to also specify the key type.


#3

I see, thanks…


#4

std::pair not good enough?