added valid iterator member to bidirectional iterator class
This commit is contained in:
@@ -170,6 +170,8 @@ public:
|
||||
tsDLIterConstBD (const class tsDLIterConstBD<T> ©In);
|
||||
# endif
|
||||
|
||||
bool valid () const;
|
||||
|
||||
//
|
||||
// end of the list constant
|
||||
//
|
||||
@@ -213,6 +215,8 @@ public:
|
||||
tsDLIterBD (const class tsDLIterBD<T> ©In);
|
||||
# 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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user