[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] [getfem-commits] branch master updated: simplification
From: |
Yves Renard |
Subject: |
[Getfem-commits] [getfem-commits] branch master updated: simplification of comparison operator for the tab_ref_reg_spaced_iterator |
Date: |
Wed, 20 Dec 2023 07:38:57 -0500 |
This is an automated email from the git hooks/post-receive script.
renard pushed a commit to branch master
in repository getfem.
The following commit(s) were added to refs/heads/master by this push:
new e850f907 simplification of comparison operator for the
tab_ref_reg_spaced_iterator
e850f907 is described below
commit e850f90789c097af4336eea42a72e0eb89f221b9
Author: Renard Yves <yves.renard@insa-lyon.fr>
AuthorDate: Wed Dec 20 13:38:35 2023 +0100
simplification of comparison operator for the tab_ref_reg_spaced_iterator
---
src/gmm/gmm_ref.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/gmm/gmm_ref.h b/src/gmm/gmm_ref.h
index 7c629542..43b1581c 100644
--- a/src/gmm/gmm_ref.h
+++ b/src/gmm/gmm_ref.h
@@ -270,14 +270,15 @@ namespace gmm {
{ return *(piter + *(iter_index+ii)); }
bool operator ==(const iterator &i) const
- { return ((piter) == ((i.piter)) && iter_index == i.iter_index); }
+ // { return (piter == i.piter && iter_index == i.iter_index); }
+ { return (iter_index == i.iter_index); }
bool operator !=(const iterator &i) const { return !(i == *this); }
bool operator < (const iterator &i) const
- { return ((piter) == ((i.piter)) && iter_index < i.iter_index); }
+ { return (iter_index < i.iter_index); }
bool operator > (const iterator &i) const
- { return ((piter) == ((i.piter)) && iter_index > i.iter_index); }
+ { return (iter_index > i.iter_index); }
bool operator >=(const iterator &i) const
- { return ((piter) == ((i.piter)) && iter_index >= i.iter_index); }
+ { return (iter_index >= i.iter_index); }
tab_ref_index_ref_iterator_(void) {}
tab_ref_index_ref_iterator_(const ITER &iter,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-commits] [getfem-commits] branch master updated: simplification of comparison operator for the tab_ref_reg_spaced_iterator,
Yves Renard <=