是[[属性]]是新的C ++ 11? [英] Are [[attributes]] new to C++11?

查看:135
本文介绍了是[[属性]]是新的C ++ 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用C ++ 11属性会提示[[attributes]]是C的新功能++ 11。

using C++11 attributes gives a hint that [[attributes]] are new to C++11.

我想确认一下:C ++ 11新增的属性是什么?

I would like to confirm this: Are attributes new to C++11?

推荐答案

是的,属性是2011年ISO C ++标准的一个新功能;它们在以前的2003标准中没有指定。

Yes, attributes are a new feature in the 2011 ISO C++ standard; they are not specified in the previous 2003 standard.

它们在标准的第7.6节[dcl.attr]中有记录。该标准的最近一份草案是 N3376 (PDF,4.9 MB)。

They're documented in section 7.6 [dcl.attr] of the standard. A recent draft of the standard is N3376 (PDF, 4.9 MB).

这篇关于是[[属性]]是新的C ++ 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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