mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Added more compare operators to Identifier class
This commit is contained in:
parent
9e4741f2e4
commit
676ad43898
1 changed files with 12 additions and 0 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue