NULL
De 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. |
| Defined in header <cstddef>
|
||
| Defined in header <cstring>
|
||
| Defined in header <cwchar>
|
||
| Defined in header <ctime>
|
||
| Defined in header <clocale>
|
||
| Defined in header <cstdio>
|
||
| #define NULL /*implementation-defined*/ |
||
Define la constante de puntero nulo, que es un prvalue integral expresión constante de tipo entero que se evalúa como cero o un prvalue de std::nullptr_t tipo. La constante de puntero nulo puede ser convertir implícitamente a cualquier tipo de puntero; tales resultados de conversión en el valor de puntero nulo de ese tipo. Si la constante de puntero nulo tiene tipo entero, puede ser convertido a un prvalue de tipo 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 convertir implícitamente 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.
[editar] Posible implementación
#define NULL 0 //since C++11 #define NULL nullptr |
[editar] Ejemplo
[editar] Ver también
| nullptr | el puntero literal que especifica un puntero (C++11) valor nulo
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) |
el tipo de la nullptr literal puntero nulo 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. (typedef) |