summaryrefslogtreecommitdiff
path: root/include/VBox/com/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/VBox/com/string.h')
-rw-r--r--include/VBox/com/string.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/include/VBox/com/string.h b/include/VBox/com/string.h
index 3462818e..63e08ae9 100644
--- a/include/VBox/com/string.h
+++ b/include/VBox/com/string.h
@@ -204,15 +204,23 @@ public:
}
bool operator==(const Bstr &that) const { return !compare(that.m_bstr); }
+ bool operator==(CBSTR that) const { return !compare(that); }
+ bool operator==(BSTR that) const { return !compare(that); }
bool operator!=(const Bstr &that) const { return !!compare(that.m_bstr); }
- bool operator==(CBSTR that) const { return !compare(that); }
- bool operator==(BSTR that) const { return !compare(that); }
-
- bool operator!=(CBSTR that) const { return !!compare(that); }
- bool operator!=(BSTR that) const { return !!compare(that); }
- bool operator<(const Bstr &that) const { return compare(that.m_bstr) < 0; }
- bool operator<(CBSTR that) const { return compare(that) < 0; }
- bool operator<(BSTR that) const { return compare(that) < 0; }
+ bool operator!=(CBSTR that) const { return !!compare(that); }
+ bool operator!=(BSTR that) const { return !!compare(that); }
+ bool operator<(const Bstr &that) const { return compare(that.m_bstr) < 0; }
+ bool operator<(CBSTR that) const { return compare(that) < 0; }
+ bool operator<(BSTR that) const { return compare(that) < 0; }
+ bool operator<=(const Bstr &that) const { return compare(that.m_bstr) <= 0; }
+ bool operator<=(CBSTR that) const { return compare(that) <= 0; }
+ bool operator<=(BSTR that) const { return compare(that) <= 0; }
+ bool operator>(const Bstr &that) const { return compare(that.m_bstr) > 0; }
+ bool operator>(CBSTR that) const { return compare(that) > 0; }
+ bool operator>(BSTR that) const { return compare(that) > 0; }
+ bool operator>=(const Bstr &that) const { return compare(that.m_bstr) >= 0; }
+ bool operator>=(CBSTR that) const { return compare(that) >= 0; }
+ bool operator>=(BSTR that) const { return compare(that) >= 0; }
/**
* Returns true if the member string has no length.