std::pointer_safety
Da 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. |
Definido no cabeçalho <memory> | ||
enumclass pointer_safety { relaxed, | (desde C++11) | |
The scoped enumeration type pointer_safety
lists the pointer safety modes supported by C++
[editar]Enumeração constantes
pointer_safety::strict | Only safely-derived pointers (pointers to objects allocated with new or subobjects thereof) may be dereferenced or deallocated. Garbage collector may be active. |
pointer_safety::preferred | All pointers are considered valid and may be dereferenced or deallocated. A reachability-based leak detector may be active |
pointer_safety::relaxed | All pointers are considered valid and may be dereferenced or deallocated |
[editar]Veja também
(C++11) | devolve o modelo de segurança de correntes de ponteiro Original: returns the current pointer safety model The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) |