MSVC10 Visual Studio 2010支持基于C ++范围的循环 [英] Does MSVC10 Visual Studio 2010 support C++ range based loops

查看:147
本文介绍了MSVC10 Visual Studio 2010支持基于C ++范围的循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MSVC10是否支持C ++ 0x草稿标准的基于范围的循环?

Does MSVC10 support the C++0x draft standard's range based loop?

http://en.wikipedia.org/wiki/C%2B%2B0x#Range-based_for-loop

示例:

for (int& p : array) { ... }


推荐答案

否。 Stephan T. Lavavej的解释这个功能在Visual Studio 2010的发布周期中改变太晚了。

No. Stephan T. Lavavej's explains the feature was altered too late in Visual Studio 2010's release cycle.

对Visual Studio Team的博客的评论: http://blogs.msdn.com/b/vcblog/archive/2009/07/13/intellisense-and-browsing-with-c-0x.aspx

Comments on the Visual Studio Team's blog: http://blogs.msdn.com/b/vcblog/archive/2009/07/13/intellisense-and-browsing-with-c-0x.aspx

这篇关于MSVC10 Visual Studio 2010支持基于C ++范围的循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆