add ChanMapping comparator

This commit is contained in:
Robin Gareus 2016-03-27 17:36:18 +02:00
parent 28868363fa
commit 6e0bc5d694

View file

@ -52,6 +52,14 @@ public:
Mappings mappings() { return _mappings; }
const Mappings mappings() const { return _mappings; }
bool operator==(const ChanMapping& other) const {
return (_mappings == other._mappings);
}
bool operator!=(const ChanMapping& other) const {
return ! (*this == other);
}
private:
Mappings _mappings;
};