From 6e0bc5d69488a4920963c8611f3e730ee84d1c62 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 27 Mar 2016 17:36:18 +0200 Subject: add ChanMapping comparator --- libs/ardour/ardour/chan_mapping.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ardour') 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; }; -- cgit v1.2.3