diff --git a/src/groups/mwc/mwcc/mwcc_orderedhashmap.h b/src/groups/mwc/mwcc/mwcc_orderedhashmap.h index 410fb38c37..c8dc2c965b 100644 --- a/src/groups/mwc/mwcc/mwcc_orderedhashmap.h +++ b/src/groups/mwc/mwcc/mwcc_orderedhashmap.h @@ -296,6 +296,9 @@ class OrderedHashMap_SequentialIterator { // MANIPULATORS + /// Assign to this object the value of the specified `rhs` object. + OrderedHashMap_SequentialIterator& operator=(const NcIter& rhs); + /// Advance this iterator to the next element in the sequential list and /// return its new value. The behavior is undefined unless this /// iterator is in the range `[begin() .. end())` (i.e., the iterator is @@ -885,6 +888,15 @@ inline OrderedHashMap_SequentialIterator< } // MANIPULATORS + +template +inline OrderedHashMap_SequentialIterator& +OrderedHashMap_SequentialIterator::operator=(const NcIter& rhs) +{ + d_link_p = rhs.d_link_p; + return *this; +} + template inline OrderedHashMap_SequentialIterator& OrderedHashMap_SequentialIterator::operator++() diff --git a/src/groups/mwc/mwcc/mwcc_orderedhashmapwithhistory.h b/src/groups/mwc/mwcc/mwcc_orderedhashmapwithhistory.h index 92e32a1e41..bf3087260c 100644 --- a/src/groups/mwc/mwcc/mwcc_orderedhashmapwithhistory.h +++ b/src/groups/mwc/mwcc/mwcc_orderedhashmapwithhistory.h @@ -108,6 +108,9 @@ class OrderedHashMapWithHistory_Iterator { // MANIPULATORS + /// Assign to this object the value of the specified `rhs` object. + OrderedHashMapWithHistory_Iterator& operator=(const NcIter& rhs); + /// Advance this iterator to the next element in the sequential list and /// return its new value. The behavior is undefined unless this /// iterator is in the range `[begin() .. end())` (i.e., the iterator is @@ -386,6 +389,15 @@ inline OrderedHashMapWithHistory_Iterator< } // MANIPULATORS + +template +inline OrderedHashMapWithHistory_Iterator& +OrderedHashMapWithHistory_Iterator::operator=(const NcIter& rhs) +{ + d_baseIterator = rhs.d_baseIterator; + return *this; +} + template inline OrderedHashMapWithHistory_Iterator& OrderedHashMapWithHistory_Iterator::operator++()