From: Daniel Arndt Date: Tue, 26 May 2020 12:45:37 +0000 (-0400) Subject: Add another comparison operator X-Git-Tag: v9.3.0-rc1~1558^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b4e6cc759bf45198c37f791969af438e5e9a4d;p=dealii.git Add another comparison operator --- 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.