Концепции 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 (Plain Old Data) типа. Это означает, что тип совместим с типами используемых в языке программирования 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. (шаблон класса) |