你最喜欢的C ++ 0x功能是什么? [英] What's your favorite C++0x feature?

查看:93
本文介绍了你最喜欢的C ++ 0x功能是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们很多人知道(许多人,更多的人不知道),C ++目前正在为下一次修订国际标准进行最后起草,预计将在大约2年内发布。草稿和文件目前可从委员会网站获取。正在添加各种新功能,最大的是概念和lambdas。有一个非常全面的维基百科文章,其中包含许多新功能。 GCC 4.3及更高版本实施一些C ++ 0x功能

As many of us know (and many, many more don't), C++ is currently undergoing final drafting for the next revision of the International Standard, expected to be published in about 2 years. Drafts and papers are currently available from the committee website. All sorts of new features are being added, the biggest being concepts and lambdas. There is a very comprehensive Wikipedia article with many of the new features. GCC 4.3 and later implement some C++0x features.

至于新功能,我真的很喜欢类型traits(和适当的概念),但我的确定的领导是可变参数模板。直到0x,长模板列表通常涉及Boost预处理器,并且非常不愉快地写。这使事情更容易,并允许C ++ 0x模板被视为一个完美的功能语言使用可变参数模板。我已经写了一些非常酷的代码,我已经迫不及待地使用它们了。

As far as new features go, I really like type traits (and the appropriate concepts), but my definite leader is variadic templates. Until 0x, long template lists have involved Boost Preprocessor usually, and are very unpleasant to write. This makes things a lot easier and allows C++0x templates to be treated like a perfectly functional language using variadic templates. I've already written some very cool code with them already, and I can't wait to use them more often!

那么,你最渴望预期什么功能? / p>

So what features are you most eagerly anticipating?

推荐答案

自动关键字

这篇关于你最喜欢的C ++ 0x功能是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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