std::pointer_safety(3)

NAME
std::pointer_safety - std::pointer_safety

Synopsis
   Defined in header <memory>
   enum class pointer_safety {
   relaxed, (since C++11)
   preferred, (removed in C++23)
   strict
   };
   The scoped enumeration type pointer_safety lists the pointer safety modes supported
   by C++.
  Enumeration constants
                        Only safely-derived pointers (pointers to objects
   pointer_safety::strict allocated with new or subobjects thereof) may be
                        dereferenced or deallocated. Garbage collector may be
                        active.
                        All pointers are considered valid and may be dereferenced
   pointer_safety::preferred or deallocated. A reachability-based leak detector may be
                        active.
   pointer_safety::relaxed All pointers are considered valid and may be dereferenced
                        or deallocated.

See also
   get_pointer_safety returns the current pointer safety model
   (C++11)(removed in C++23) (function)