NULL
Материал из 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. |
| Заголовочный файл <cstddef>
|
||
| Заголовочный файл <cstring>
|
||
| Заголовочный файл <cwchar>
|
||
| Заголовочный файл <ctime>
|
||
| Заголовочный файл <clocale>
|
||
| Заголовочный файл <cstdio>
|
||
| #define NULL /*implementation-defined*/ |
||
Определяет нулевую постоянную указатель, который является неотъемлемой постоянной prvalue выражение целого типа, которая оценивает нулю или prvalue типа std::nullptr_t. Пустой указатель константа может быть неявно преобразованы любой тип указателя, такие результаты преобразования в нулевое значение указателя этого типа. Если нулевая постоянная указатель имеет целый тип, он может быть преобразован в prvalue типа std::nullptr_t.
Original:
Defines the null pointer constant, which is an integral constant expression prvalue of integer type that evaluates to zero or a prvalue of type std::nullptr_t. The null pointer constant may be неявно преобразованы to any pointer type; such conversion results in the null pointer value of that type. If the null pointer constant has integer type, it may be converted to a prvalue of type std::nullptr_t.
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.
[править] Возможная реализация
#define NULL 0 //since C++11 #define NULL nullptr |
[править] Пример
[править] См. также
| Nullptr | Указатель буквальном который определяет нулевой (C++11) значение указателя
Original: the pointer literal which specifies a null pointer value (C++11) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| (C++11) |
тип нулевого указателя буквальном nullptr Original: the type of the null pointer literal nullptr The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (определение типа) |