title: How to iterate throught C++ sets in Cython?
body: <p>I am optimizing python code with Cython. A set in C++ is storing all my results, and I do not know how to access the data to move it into a Python object. The structure must be a set. I cannot change it to a vector, list, etc.</p>
  
  <p>I know how to do this in Python and C++, but not in Cython. How are iterators retrieved in Cython? I get STL containers via  libcpp.STLContainer as in </p>
  
  <blockquote>
    <p>from libcpp.vector cimport vector</p>
  </blockquote>
  
  <p>But, I don't know how iterators work in Cython. What do I need to import? And, is there any change in syntax for using iterators compared to how they work in C++?</p>