In Juce documentation it states:
But when looking at the code, the insertInternal does a “memmove” to put the element at the right position.
It’s dangerous, because if used with a non POD type, the element are not created with constructor when moved (so any reference or pointer on internal data will break). When used with POD however, the comment about the operators > is useless as all POD type have those operator implicitely defined.
On the other side, a OwnedArray lacks a template-based search method so it can be used as a sorted set too.
Let me know what is best to do in that case…