// Dereference operators.
const value_type& operator*() const { return d_it->getValue(); }
+ const value_type* operator->() const { return &d_it->getValue(); }
// Prefix increment
iterator& operator++()
V operator*() const {
return d_val;
}
+ V* operator->() const { return &d_val; }
};/* class CDSet<>::iterator::Proxy */
// Actual postfix increment: returns Proxy with the old value.
return *d_it;
}
+ inline const T* operator->() const { return d_it; }
+
/** Prefix increment */
const_iterator& operator++() {
++d_it;