diff --git a/modules/juce_core/text/juce_Identifier.h b/modules/juce_core/text/juce_Identifier.h index 7891443815..6b94333659 100644 --- a/modules/juce_core/text/juce_Identifier.h +++ b/modules/juce_core/text/juce_Identifier.h @@ -93,6 +93,18 @@ public: /** Compares the identifier with a string. */ inline bool operator!= (StringRef other) const noexcept { return name != other; } + /** Compares the identifier with a string. */ + inline bool operator< (StringRef other) const noexcept { return name < other; } + + /** Compares the identifier with a string. */ + inline bool operator<= (StringRef other) const noexcept { return name <= other; } + + /** Compares the identifier with a string. */ + inline bool operator> (StringRef other) const noexcept { return name > other; } + + /** Compares the identifier with a string. */ + inline bool operator>= (StringRef other) const noexcept { return name >= other; } + /** Returns this identifier as a string. */ const String& toString() const noexcept { return name; }