added valid iterator member to bidirectional iterator class

This commit is contained in:
Jeff Hill
2000-06-26 23:42:56 +00:00
parent 84c1b75d8d
commit 16946b8b40

View File

@@ -170,6 +170,8 @@ public:
tsDLIterConstBD (const class tsDLIterConstBD<T> &copyIn);
# endif
bool valid () const;
//
// end of the list constant
//
@@ -213,6 +215,8 @@ public:
tsDLIterBD (const class tsDLIterBD<T> &copyIn);
# endif
bool valid () const;
//
// end of the list constant
//
@@ -755,6 +759,12 @@ inline tsDLIterConstBD<T> tsDLIterConstBD<T>::operator -- (int)
return tmp;
}
template <class T>
inline const tsDLIterBD<T> tsDLIterBD<T>::valid ()
{
return this->pEntry ? true : false;
}
//
// tsDLIterConstBD<T>::eol
//
@@ -878,6 +888,12 @@ inline tsDLIterBD<T> tsDLIterBD<T>::operator -- (int)
return tmp;
}
template <class T>
inline const tsDLIterBD<T> tsDLIterBD<T>::valid ()
{
return this->tsDLIterConstBD<T>::valid ();
}
//
// tsDLIterBD<T>::eol
//