add ChanMapping comparator
authorRobin Gareus <robin@gareus.org>
Sun, 27 Mar 2016 15:36:18 +0000 (17:36 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 27 Mar 2016 15:36:18 +0000 (17:36 +0200)
libs/ardour/ardour/chan_mapping.h

index baa3e9f6a9bfc63847e2485cc086a802ecd49b9c..2659c556a2480ef87b4499a903077b457e79547a 100644 (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;
 };