VirtualBox

Changeset 48691 in vbox for trunk


Ignore:
Timestamp:
Sep 25, 2013 4:45:39 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89316
Message:

More Bstr compare operators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r42570 r48691  
    205205
    206206    bool operator==(const Bstr &that) const { return !compare(that.m_bstr); }
     207    bool operator==(CBSTR that) const       { return !compare(that); }
     208    bool operator==(BSTR that) const        { return !compare(that); }
    207209    bool operator!=(const Bstr &that) const { return !!compare(that.m_bstr); }
    208     bool operator==(CBSTR that) const { return !compare(that); }
    209     bool operator==(BSTR that) const { return !compare(that); }
    210 
    211     bool operator!=(CBSTR that) const { return !!compare(that); }
    212     bool operator!=(BSTR that) const { return !!compare(that); }
    213     bool operator<(const Bstr &that) const { return compare(that.m_bstr) < 0; }
    214     bool operator<(CBSTR that) const { return compare(that) < 0; }
    215     bool operator<(BSTR that) const { return compare(that) < 0; }
     210    bool operator!=(CBSTR that) const       { return !!compare(that); }
     211    bool operator!=(BSTR that) const        { return !!compare(that); }
     212    bool operator<(const Bstr &that) const  { return compare(that.m_bstr) <  0; }
     213    bool operator<(CBSTR that) const        { return compare(that)        <  0; }
     214    bool operator<(BSTR that) const         { return compare(that)        <  0; }
     215    bool operator<=(const Bstr &that) const { return compare(that.m_bstr) <= 0; }
     216    bool operator<=(CBSTR that) const       { return compare(that)        <= 0; }
     217    bool operator<=(BSTR that) const        { return compare(that)        <= 0; }
     218    bool operator>(const Bstr &that) const  { return compare(that.m_bstr) >  0; }
     219    bool operator>(CBSTR that) const        { return compare(that)        >  0; }
     220    bool operator>(BSTR that) const         { return compare(that)        >  0; }
     221    bool operator>=(const Bstr &that) const { return compare(that.m_bstr) >= 0; }
     222    bool operator>=(CBSTR that) const       { return compare(that)        >= 0; }
     223    bool operator>=(BSTR that) const        { return compare(that)        >= 0; }
    216224
    217225    /**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette