From 6468348b7c9bbb5a17ff4f83a158470687f9f348 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 14 Apr 2017 10:02:52 +0100 Subject: [PATCH] Removed non-const operators from const_iterator --- src/iflat_multimap.h | 15 --------------- src/iflat_multiset.h | 15 --------------- src/iflat_set.h | 15 --------------- 3 files changed, 45 deletions(-) diff --git a/src/iflat_multimap.h b/src/iflat_multimap.h index f16abda9..b07d2585 100644 --- a/src/iflat_multimap.h +++ b/src/iflat_multimap.h @@ -238,31 +238,16 @@ namespace etl return temp; } - reference operator *() - { - return *(*ilookup); - } - const_reference operator *() const { return *(*ilookup); } - pointer operator &() - { - return etl::addressof(*(*ilookup)); - } - const_pointer operator &() const { return etl::addressof(*(*ilookup)); } - pointer operator ->() - { - return etl::addressof(*(*ilookup)); - } - const_pointer operator ->() const { return etl::addressof(*(*ilookup)); diff --git a/src/iflat_multiset.h b/src/iflat_multiset.h index 541e723a..a33e593b 100644 --- a/src/iflat_multiset.h +++ b/src/iflat_multiset.h @@ -237,31 +237,16 @@ namespace etl return temp; } - reference operator *() - { - return *(*ilookup); - } - const_reference operator *() const { return *(*ilookup); } - pointer operator &() - { - return etl::addressof(*(*ilookup)); - } - const_pointer operator &() const { return etl::addressof(*(*ilookup)); } - pointer operator ->() - { - return etl::addressof(*(*ilookup)); - } - const_pointer operator ->() const { return etl::addressof(*(*ilookup)); diff --git a/src/iflat_set.h b/src/iflat_set.h index c5cbaf78..6369392b 100644 --- a/src/iflat_set.h +++ b/src/iflat_set.h @@ -236,31 +236,16 @@ namespace etl return temp; } - reference operator *() - { - return *(*ilookup); - } - const_reference operator *() const { return *(*ilookup); } - pointer operator &() - { - return etl::addressof(*(*ilookup)); - } - const_pointer operator &() const { return etl::addressof(*(*ilookup)); } - pointer operator ->() - { - return etl::addressof(*(*ilookup)); - } - const_pointer operator ->() const { return etl::addressof(*(*ilookup));