template<class T>
unsigned int OECount(OEIter<T> &iter)

template<class T>
unsigned int OECount(OEIterBase<T> *iter)

Count the number of elements in an iterator.


These templated functions are only available in C++. Please see the OECount functions in OEChem TK.

These methods have the following behavior:

  • The OEIter version resets the iterator to the first element.

  • The OEIterBase version consumes the iterator.