On Thu, May 21, 2009 at 11:08 PM, Hans Roessler <span dir="ltr"><<a href="mailto:hansroessler@yahoo.de">hansroessler@yahoo.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
How can I iterate in C++ over a boost::python::list?</blockquote><div><br>you can use stl_input_iterator:<br>
<br>
stl_input_iterator<T> begin(o), end;<br>
<br>
gives you a pair of stl compatible iterators assuming you can extract type T from objects obtained by iterating over o.<br>
<br>see <a href="http://www.boost.org/doc/libs/1_39_0/libs/python/doc/v2/stl_iterator.html">http://www.boost.org/doc/libs/1_39_0/libs/python/doc/v2/stl_iterator.html</a><br><br>-- <br></div></div>Andrea Bedini <<a href="mailto:andrea.bedini@gmail.com">andrea.bedini@gmail.com</a>><br>