A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../memory/weak_ptr/../gc/pointer_safety.html below:

std::pointer_safety - cppreference.com

enum class pointer_safety {

     relaxed,
     preferred,
     strict

};
(since C++11)
(removed in C++23)

The scoped enumeration type pointer_safety lists the pointer safety modes supported by C++.

[edit] Enumeration constants Enumerator Meaning 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. [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4