From 77b4e6cc759bf45198c37f791969af438e5e9a4d Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 26 May 2020 08:45:37 -0400 Subject: [PATCH] Add another comparison operator --- include/deal.II/base/table.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index 7b4c0fd364..2162e88d90 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -907,6 +907,19 @@ namespace MatrixTableIterators AccessorBase(const container_pointer_type table, const std::ptrdiff_t linear_index); + /** + * Comparison operator. + */ + template + friend bool + operator==( + const AccessorBase & left, + const AccessorBase &right) + { + return left.container == right.container && + left.linear_index == right.linear_index; + } + /** * Get a constant reference to the value of the element represented by * this accessor. -- 2.39.5