.. # split from OESystemFunctions.rst:1596

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEIsEmpty

.. oe:function:: OEIsEmpty

   .. oe:api::

      template<class T>
      unsigned int OEIsEmpty(OEIterBase<T>* iterbase)

   Returns whether the iterator is empty and consumes the iterator.

   .. code-block:: c++

      bool has_hydrogens = !OEIsEmpty<OEAtomBase>(mol.GetAtoms(OEIsHydrogen()));


