diff options
author | Robin Gareus <robin@gareus.org> | 2016-03-27 17:36:18 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-03-27 17:36:18 +0200 |
commit | 6e0bc5d69488a4920963c8611f3e730ee84d1c62 (patch) | |
tree | 46fd173e30fe68ae143b9783ac16bfb23633ce1f /libs/ardour/ardour/chan_mapping.h | |
parent | 28868363fa3a7e9ae3a6d2c838730b83d69b86af (diff) |
add ChanMapping comparator
Diffstat (limited to 'libs/ardour/ardour/chan_mapping.h')
-rw-r--r-- | libs/ardour/ardour/chan_mapping.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/chan_mapping.h b/libs/ardour/ardour/chan_mapping.h index baa3e9f6a9..2659c556a2 100644 --- a/libs/ardour/ardour/chan_mapping.h +++ b/libs/ardour/ardour/chan_mapping.h @@ -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; }; |