diff options
-rw-r--r-- | raul/Symbol.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/raul/Symbol.hpp b/raul/Symbol.hpp index 1a57886..be2fa61 100644 --- a/raul/Symbol.hpp +++ b/raul/Symbol.hpp @@ -74,6 +74,10 @@ public: return _str != other._str; } + inline bool operator<(const Symbol& other) const { + return strcmp(_str, other._str) < 0; + } + static bool is_valid(const std::basic_string<char>& symbol); static std::string symbolify(const std::basic_string<char>& str); |