chun ping wang wrote:
hi, is their anyway where i can use boost foreach to iterate through two different containers at once.
 
Like I have two vector of float and i want to iterate through them parallell.. (not using indexing.. since it doesn't work with all types). Thanks.

Something that is equalivent to python,
for x,y in xArray, yArray:
     # do some awesome stuff.
     print x, y 
This sounds like the zip iterator by David Abrahams and Thomas Becker.  Take a look at http://www.boost.org/libs/iterator/doc/zip_iterator.html and see if that does what you need.