C++ 概念: PODType
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
指定的类型是POD(普通旧数据)的类型。这意味着该类型是在C编程语言中使用的类型兼容,使用C库函数可以被操纵:它可以创建std::malloc,它可以被复制与std::memmove等,并可以交换C库直接,其二进制形式.
Original:
Specifies that the type is POD (Plain Old Data) type. This means the type is compatible with the types used in the C programming language, can be manipulated using C library functions: it can be created with std::malloc, it can be copied with std::memmove, etc, and can be exchanged with C libraries directly, in its binary form.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
注意,该标准没有定义或概念,这个名字的命名要求。这是一种由核心语言定义的类别。作为唯一的一致性的概念,它包括在这里.
Original:
Note, that the standard doesn't define a named requirement or concept with this name. This is a type category defined by the core language. It is included here as concept only for consistency.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 需求NJ
无论是
Original:
Either
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
或者一个类类型(class或struct或union)
Original:
Or a class type (class or struct or union) that is
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- an
AggregateType - 有没有非静态成员,非PODOriginal:has no non-static members that are non-PODThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 没有任何成员的引用类型Original:has no members of reference typeThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 有没有用户自定义拷贝构造函数Original:has no user-defined copy constructorThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 有没有用户定义的析构函数Original:has no user-defined destructorThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
或这种类型的数组
Original:
Or an array of such type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 需求NJ
无论是
Original:
Either
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
或者一个类类型(class或struct或union)
Original:
Or a class type (class or struct or union) that is
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
-
TrivialType -
StandardLayoutType - 有没有非静态成员,非PODOriginal:has no non-static members that are non-PODThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
或这种类型的数组
Original:
Or an array of such type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 另请参阅
| (C++11) |
检查如果一个类型是普通的旧数据(POD)类型 Original: checks if a type is plain-old data (POD) type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类模板) |