[C++-sig] Re: iterator interface question

David Abrahams dave at boost-consulting.com
Fri Jan 30 23:06:01 CET 2004


Raoul Gough <RaoulGough at yahoo.co.uk> writes:

> so that you can pass them around. However, I forsee problems with
> std::vector if your standard library uses pointers for iterators
> here. Probably a better solution would be to write a simple
> iterator_range wrapper that contains two C++ iterators, expose that to
> Python...

That's what Boost.Python's iterator<> and range components do.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list