fast foreach for c++ stl containers and array