From: David Wells Date: Sat, 5 Sep 2015 21:26:20 +0000 (-0400) Subject: Add operator< to TriaRawIterator. X-Git-Tag: v8.4.0-rc2~475^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1533%2Fhead;p=dealii.git Add operator< to TriaRawIterator. This just switches the arguments to operator>. --- 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 &