mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #345 Private::Attribute: friend function operators for symmetry/consistency.
This commit is contained in:
@@ -128,12 +128,12 @@ namespace BlackMisc
|
||||
T &m_obj;
|
||||
QString m_jsonName;
|
||||
|
||||
bool operator ==(const Attribute &other) const { return m_obj == other.m_obj; }
|
||||
bool operator !=(const Attribute &other) const { return m_obj != other.m_obj; }
|
||||
bool operator <(const Attribute &other) const { return m_obj < other.m_obj; }
|
||||
bool operator <=(const Attribute &other) const { return m_obj <= other.m_obj; }
|
||||
bool operator >(const Attribute &other) const { return m_obj > other.m_obj; }
|
||||
bool operator >=(const Attribute &other) const { return m_obj >= other.m_obj; }
|
||||
friend bool operator ==(const Attribute &a, const Attribute &b) { return a.m_obj == b.m_obj; }
|
||||
friend bool operator !=(const Attribute &a, const Attribute &b) { return a.m_obj != b.m_obj; }
|
||||
friend bool operator <(const Attribute &a, const Attribute &b) { return a.m_obj < b.m_obj; }
|
||||
friend bool operator <=(const Attribute &a, const Attribute &b) { return a.m_obj <= b.m_obj; }
|
||||
friend bool operator >(const Attribute &a, const Attribute &b) { return a.m_obj > b.m_obj; }
|
||||
friend bool operator >=(const Attribute &a, const Attribute &b) { return a.m_obj >= b.m_obj; }
|
||||
};
|
||||
|
||||
// Helpers used in tie(), tieMeta(), and elsewhere, which arrange for the correct types to be passed to std::make_tuple.
|
||||
|
||||
Reference in New Issue
Block a user