diff options
author | Tim King <taking@cs.nyu.edu> | 2018-07-25 16:13:18 -0700 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2018-07-25 16:13:18 -0700 |
commit | d01aea38d45c8242a39be95c5c634182c6b3a902 (patch) | |
tree | 108bb7d90b6dd0bc4c93b73bf1c2606da42875d9 /src/context/cdhashmap.h | |
parent | aae5e18cb1bc8a6774fa4293cc0b5016fab7c46e (diff) |
Removing support for CDHashMap::iterator's postfix increment. (#2208)
Diffstat (limited to 'src/context/cdhashmap.h')
-rw-r--r-- | src/context/cdhashmap.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/context/cdhashmap.h b/src/context/cdhashmap.h index f58bb6509..83a8f22c4 100644 --- a/src/context/cdhashmap.h +++ b/src/context/cdhashmap.h @@ -425,29 +425,7 @@ public: return *this; } - // Postfix increment: requires a Proxy object to hold the - // intermediate value for dereferencing - class Proxy { - const std::pair<const Key, Data>* d_pair; - - public: - - Proxy(const std::pair<const Key, Data>& p) : d_pair(&p) {} - - const std::pair<const Key, Data>& operator*() const { - return *d_pair; - } - };/* class CDHashMap<>::iterator::Proxy */ - - // Actual postfix increment: returns Proxy with the old value. - // Now, an expression like *i++ will return the current *i, and - // then advance the iterator. However, don't try to use - // Proxy for anything else. - const Proxy operator++(int) { - Proxy e(*(*this)); - ++(*this); - return e; - } + // Postfix increment is not yet supported. };/* class CDHashMap<>::iterator */ typedef iterator const_iterator; |