首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

什么叫POD(Plain Old Data)?该如何处理

2012-06-06 
什么叫POD(Plain Old Data)?在看书的时候遇到这样个问题,麻烦谁知道解答一下。[解决办法]Arithmetic types

什么叫POD(Plain Old Data)?
在看书的时候遇到这样个问题,麻烦谁知道解答一下。

[解决办法]
Arithmetic types (3.9.1), enumeration types, pointer types, and pointer to member types (3.9.2), and cv-qualified versions of these types (3.9.3) are collectively called scalar types. Scalar types, POD-struct types, POD-union types (clause 9), arrays of such types and cv-qualified versions of these types (3.9.3) are collectively called POD types.


A POD-struct is an aggregate class that has no non-static data members of type non-POD-struct, non-POD-union (or array of such types) or reference, and has no user-defined copy assignment operator and no user-defined destructor. Similarly, a POD-union is an aggregate union that has no non-static data members of type non-POD-struct, non-POD-union (or array of such types) or reference, and has no userdefined
copy assignment operator and no user-defined destructor. A POD class is a class that is either a POD-struct or a POD-union.
[解决办法]

探讨

错了 我是想问3楼的那个,我怎么都找不到引用:
引用:

请问2楼 这些东西是哪里可以找到?引用:
Arithmetic types (3.9.1), enumeration types, pointer types, and pointer to member types (3.9.2), and cv-qualified versio……

热点排行