[svn] commit: r1348 - in /trunk/src/lib/dns: message.cc message.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Mar 12 04:32:46 UTC 2010
Author: jinmei
Date: Fri Mar 12 04:32:46 2010
New Revision: 1348
Log:
add operator== for question/section iterators
Modified:
trunk/src/lib/dns/message.cc
trunk/src/lib/dns/message.h
Modified: trunk/src/lib/dns/message.cc
==============================================================================
--- trunk/src/lib/dns/message.cc (original)
+++ trunk/src/lib/dns/message.cc Fri Mar 12 04:32:46 2010
@@ -895,6 +895,13 @@
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
{
return (impl_->it_ != other.impl_->it_);
Modified: trunk/src/lib/dns/message.h
==============================================================================
--- trunk/src/lib/dns/message.h (original)
+++ trunk/src/lib/dns/message.h Fri Mar 12 04:32:46 2010
@@ -486,6 +486,7 @@
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_;
More information about the bind10-changes
mailing list