]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add operator< to TriaRawIterator. 1533/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 5 Sep 2015 21:26:20 +0000 (17:26 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 5 Sep 2015 22:20:11 +0000 (18:20 -0400)
This just switches the arguments to operator>.

include/deal.II/grid/tria_iterator.h

index c1c644131c62b458f7235ca8147af906139d208d..094dc8e54ef9eb78e4cd25f1d526310f1b7885cf 100644 (file)
@@ -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<Accessor>::operator < (const TriaRawIterator<Accessor> &other) c
 }
 
 
+
+template <typename Accessor>
+inline
+bool
+TriaRawIterator<Accessor>::operator > (const TriaRawIterator<Accessor> &other) const
+{
+  return (other < *this);
+}
+
+
+
 template <typename Accessor>
 inline
 TriaRawIterator<Accessor> &

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.