.. _Basis_Iterators: ######### Iterators ######### We provide :ref:`iterators` supporting standard **cpp** syntax: .. code-block:: cpp /* basis is Basis class instance */ /* Using begin() and end() */ for(auto it = basis.begin(); it < basis.end(); ++it){ std::cout << *it << std::endl; } /* Using first() and last() */ for(auto it = basis.first(); it <= basis.last(); ++it){ std::cout << *it << std::endl; } .. warning:: The :ref:`iterator` initiated by ``end()`` does **not** point to a physical state. .. doxygenfunction:: danceq::internal::BasisU1::begin(void) .. doxygenfunction:: danceq::internal::BasisU1::end(void) .. doxygenfunction:: danceq::internal::BasisU1::first(void) .. doxygenfunction:: danceq::internal::BasisU1::last(void)