Commit 5df12b30 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

add operator== for question/section iterators


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1348 e5f2f494-b856-4b98-b285-d166d9295462
parent 77c77a5f
......@@ -893,6 +893,13 @@ SectionIterator<T>::operator->() const
return (impl_->it_.operator->());
}
template <typename T>
bool
SectionIterator<T>::operator==(const SectionIterator<T>& other) const
{
return (impl_->it_ == other.impl_->it_);
}
template <typename T>
bool
SectionIterator<T>::operator!=(const SectionIterator<T>& other) const
......
......@@ -486,6 +486,7 @@ public:
SectionIterator<T> operator++(int);
const T& operator*() const;
const T* operator->() const;
bool operator==(const SectionIterator<T>& other) const;
bool operator!=(const SectionIterator<T>& other) const;
private:
SectionIteratorImpl<T>* impl_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment