From 41f891b03778c72eb88f7c511eb2733355b1bfab Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 5 Sep 2015 17:26:20 -0400 Subject: [PATCH] Add operator< to TriaRawIterator. This just switches the arguments to operator>. --- include/deal.II/grid/tria_iterator.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/deal.II/grid/tria_iterator.h b/include/deal.II/grid/tria_iterator.h index c1c644131c..094dc8e54e 100644 --- a/include/deal.II/grid/tria_iterator.h +++ b/include/deal.II/grid/tria_iterator.h @@ -419,6 +419,12 @@ public: */ bool operator < (const TriaRawIterator &) const; + /** + * Another comparison operator, implementing with the same ordering as + * #operator<. + */ + bool operator > (const TriaRawIterator &) const; + /**@name Advancement of iterators*/ /*@{*/ /** @@ -1015,6 +1021,17 @@ TriaRawIterator::operator < (const TriaRawIterator &other) c } + +template +inline +bool +TriaRawIterator::operator > (const TriaRawIterator &other) const +{ + return (other < *this); +} + + + template inline TriaRawIterator & -- 2.39.5